in reply to Listglob

I'm not sure if I understand you correctly; but maybe references might help you and the fact that glob also allows more parameters ...
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"