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 thelenm (Vicar)
on Jun 25, 2002 at 18:25 UTC ( [id://177166]=note: print w/replies, xml ) Need Help??


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}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-18 05:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found