laziness, impatience, and hubris | |
PerlMonks |
Re^2: quickest way to find number of files in a directory?by zoroaster (Initiate) |
on Jul 01, 2012 at 22:10 UTC ( [id://979343]=note: print w/replies, xml ) | Need Help?? |
Thanks a lot, that works great.
Does anybody know if it's possible to include variables in the file handle? For example, if I want all the .pl files starting with 'blabla' is it possible to do something like this:
my $prename = 'blabla';
my @files = <$prename*.pl>
my $count = @files
It works with just <*.pl> but I can't get the variable to work.
In Section
Seekers of Perl Wisdom
|
|