in reply to accumulating rex-exp matches in an array
Anyway, you want to use the /g modifier:
while (<INFILE>) { push @list, /AAA.\d/g; # parens not needed in regex here }
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
---|