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
edit (broquaint): added <code> tags + formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: readdir
by Zaxo (Archbishop) on Oct 30, 2002 at 08:05 UTC | |
|
Re: readdir
by grantm (Parson) on Oct 30, 2002 at 08:10 UTC | |
|
Re: readdir
by djantzen (Priest) on Oct 30, 2002 at 07:03 UTC | |
|
Re: readdir
by dingus (Friar) on Oct 30, 2002 at 12:05 UTC | |
by dingus (Friar) on Oct 30, 2002 at 13:46 UTC |