in reply to Re: regex needed with match operator
in thread regex needed with match operator

And once you try to store the retrieved bits, you arrive at something like
my @name; push @name, m{ /(\w+) /foo\z }x for @FILES;
which, of course, is a map in disguise:
my @name = map m{ /(\w+) /foo\z }x, @FILES;

Makeshifts last the longest.