Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: accumulating rex-exp matches in an array

by Anonymous Monk
on Jun 25, 2002 at 18:23 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://177164]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-23 16:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found