For a start, try renaming my @fnames = shift; to my $fnames = shift; (untested)
you should inform yourself about the differences between plain @arrays and $array_references.
And please remove the pod block, it's not a good approach to uncomment code.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
In reply to Re: Passing file names to search directories
by LanX
in thread Passing file names to search directories
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |