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


in reply to accumulating rex-exp matches in an array

my @list; foreach my $file (<INFILE>) { foreach (split /,/, $file) { m/(AAA\.\d)/; push @list, $1; } }
Added a `\' in front of the `.' in your regex.