in reply to Re: quickest way to find number of files in a directory?
in thread quickest way to find number of files in a directory?

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.
  • Comment on Re^2: quickest way to find number of files in a directory?

Replies are listed 'Best First'.
Re^3: quickest way to find number of files in a directory?
by Anonymous Monk on Jul 01, 2012 at 22:21 UTC
      Yes, it was mistake on my part - it works with variables, too. Sorry about that.