Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: capturing from Input file

by pc88mxer (Vicar)
on Dec 12, 2007 at 23:02 UTC ( [id://656725]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while ($output =~ m/...re.../sg) {
      ... process block ...
    }
    
  2. or download this
    $re = qr{AMQ8409.*?QUEUE\((.*?)\).*?RQMNAME\((.*?)\).*?RNAME\((.*?)\).
    +*?end};
    
  3. or download this
    while ($output =~ m/(AMQ8409.*?end)/gs) {
      my $block = $1;
    ...
      # process block
      # use $hash{QUEUE}, $hash{RQMNAME}, $hash{RNAME}, etc.
    }
    
  4. or download this
    my %hash;
    while (<>) {
    ...
        # ... add more variables of interest ...
      }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-16 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found