wolverina has asked for the wisdom of the Perl Monks concerning the following question:
use Cwd; my $dir = getcwd; opendir (DIR, $dir) or die $!; my @dir = readdir DIR; rewinddir(DIR); my @perlFiles = grep /\.pl/, readdir DIR; foreach my $item (@perlFiles) { print "$item\n"; } closedir DIR;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: associate radio buttons
by dominix (Deacon) on Jan 08, 2004 at 22:52 UTC | |
Re: associate radio buttons
by chromatic (Archbishop) on Jan 08, 2004 at 21:24 UTC | |
Re: associate radio buttons
by Zed_Lopez (Chaplain) on Jan 08, 2004 at 22:45 UTC | |
Re: associate radio buttons
by TomDLux (Vicar) on Jan 08, 2004 at 22:50 UTC |