http://qs321.pair.com?node_id=509296


in reply to grep question

I'd say something like this would work...
my @capture = map { /(\d{4})\d{4}.txt/ } grep { ... } ...;