Creating a new return list is both more efficient and more elegant than any hack and
splice solution. You're already on the right path ;) And as
strat notes,
glob is already designed for this. Why even write a sub?
my @files = <@params>;
MeowChow
s aamecha.s a..a\u$&owag.print