Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Getting the next line after a match

by melguin (Pilgrim)
on Dec 20, 2001 at 02:57 UTC ( [id://133310]=note: print w/replies, xml ) Need Help??


in reply to Getting the next line after a match

To add to the above, depending on how you would get the output:
my $line; open(OUTPUT, "|command that gets output") or die "dead"; while(<OUTPUT>) { if (/Buffers/) { $line = <OUTPUT>; last; } } close(OUTPUT);

This is probably right. Maybe not.

melguin

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-25 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found