Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: accumulating rex-exp matches in an array

by arturo (Vicar)
on Jun 25, 2002 at 18:23 UTC ( [id://177163]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @list;
    while (<INFILE>) {
     push @list, m/(AAA\.\d)/g;
    }
    
  2. or download this
    while (<INFILE>) {
     if (my @matches = m/(AAA\.\d)/g ) {
      push @list, @matches;
     }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-03-19 02:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found