pen has asked for the wisdom of the Perl Monks concerning the following question:
opendir dirs2, "D:" or die "Couldn't open directory: $!"; while ($_ = (readdir dirs2)) { if (-d $_) { print "Directory: $_\n"; } }
edited: Mon Sep 22 21:10:49 2003 by jeffa - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Directory path and -d??
by Paladin (Vicar) on Sep 22, 2003 at 21:12 UTC | |
|
Re: Directory path and -d??
by bart (Canon) on Sep 22, 2003 at 21:35 UTC | |
by pen (Acolyte) on Sep 24, 2003 at 13:50 UTC | |
|
Re: Directory path and -d??
by tcf22 (Priest) on Sep 22, 2003 at 21:24 UTC |