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.