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


in reply to accumulating rex-exp matches in an array

You can use the array returned by a global match, like so:
my @list; while (<INFILE>) { push @list, m/(AAA.\d)/g; }

-- Mike

--
just,my${.02}