Poetic Justice has asked for the wisdom of the Perl Monks concerning the following question:
while ( $standir = readdir( DIR ) ) { $type = ( -d "$path\\$standir" ) ? "dir" : "file"; if ($standir =~ m/^\./) { $standir = ''; } else { $standir = "$standir" ."\n"; push(@standir,$standir); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Directory Listing to array
by Zaxo (Archbishop) on Apr 09, 2002 at 21:27 UTC | |
by tachyon (Chancellor) on Apr 10, 2002 at 09:25 UTC | |
|
Re: Directory Listing to array
by Zed_Lopez (Chaplain) on Apr 09, 2002 at 21:43 UTC | |
|
Re: Directory Listing to array
by tachyon (Chancellor) on Apr 09, 2002 at 23:27 UTC | |
by Poetic Justice (Monk) on Apr 10, 2002 at 04:08 UTC | |
|
Re: Directory Listing to array
by Poetic Justice (Monk) on Apr 09, 2002 at 22:48 UTC | |
|
Re: Directory Listing to array
by Poetic Justice (Monk) on Apr 10, 2002 at 19:37 UTC |