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 thelenm (Vicar)
on Jun 25, 2002 at 18:25 UTC ( #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
Node Status?
node history
Node Type: note [id://177166]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (8)
As of 2021-01-27 18:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?