Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Now, i would like to read only the file name that begin with xxxxmy $dir = "c:/temp/"; opendir (DIR, $dir) or die "Unable to open dir $dir : $!"; my @files = readdir(DIR) or die "Unable to readdir $dir : $!"; closedir DIR; print "@files <br>";
Can you help me with an example ??
Thank you Claudia
broquaint: added code tags and formatting
Title edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: readdir
by CubicSpline (Friar) on Oct 29, 2002 at 18:52 UTC | |
|
Re: readdir
by Speedy (Monk) on Oct 29, 2002 at 19:49 UTC | |
|
Re: readdir
by Enlil (Parson) on Oct 29, 2002 at 18:53 UTC | |
|
Re: readdir
by belg4mit (Prior) on Oct 29, 2002 at 18:51 UTC |