Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: accumulating rex-exp matches in an array

by Anonymous Monk
on Jun 25, 2002 at 18:23 UTC ( #177164=note: print w/replies, xml ) Need Help??


in reply to accumulating rex-exp matches in an array

This is untested but should work, especially if each AAA code is seperated by a comma.
my @list; while (<INFILE>){ my @line = split/,/,$_; for (@line){ m/(AAA.\d)/; push @list, $1; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://177164]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2021-01-21 19:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?