sub globlist { my @back = glob("@_"); # list with spaces between: take care: # $" has to contain a space to do so # or write better: my @back = glob (join(" ", @_)); return \@back; } my $paramArrayRef = &globlist(@param);
Another idea: As glob's are not really fast, could it improve the performance if you work with opendir and readdir and do the filtering that way?
Best regards,
perl -le "s==*F=e=>y~\*martinF~stronat~=>s~[^\w]~~g=>chop,print"
In reply to Re: Listglob
by strat
in thread Listglob
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |