Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: accumulating rex-exp matches in an array

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

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