Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: How to get ($1, $2, ...)?

by Anno (Deacon)
on Feb 16, 2007 at 16:28 UTC ( #600471=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @answers;
    while (my $line = <DATA>){
    ...
        my @results;
        if (@results = $line =~ /$re/){
          push @answers, ["@results"];
    
  2. or download this
        }
      }
    }
    
  3. or download this
       # ...
      for my $re (@res){
    ...
        push @answers, \ @results if @results = $line =~ $re;
      }
      # ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2019-07-16 04:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?