in reply to
seeing all files in a directory
Also note that you must opendir() before readdir() will work.
Here's one alternative to readdir()... it assumes that $path is set appropriately, and you want all ".txt" files:
my @numfiles = glob("$path/*.txt");
[download]
Hot Pastrami
Comment on
Re: seeing all files in a directory
Download
Code
In Section
Seekers of Perl Wisdom