in reply to Re^3: using grep on a directory to list files for a single date
in thread using grep on a directory to list files for a single date

oh, you might want to return a reference to the array instead of the array itself, especially if it's big.

... return [ sort @filtered_listing ]; } my $array = list(...); foreach (0..$#$array) { ... $$array[$_] ... }