Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: accumulating rex-exp matches in an array

by joshua (Pilgrim)
on Jun 25, 2002 at 18:22 UTC ( #177162=note: print w/replies, xml ) Need Help??


in reply to accumulating rex-exp matches in an array

my @list; foreach my $file (<INFILE>) { foreach (split /,/, $file) { m/(AAA\.\d)/; push @list, $1; } }
Added a `\' in front of the `.' in your regex.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2021-01-17 18:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?