Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Perl script to print Next line after Pattern Matching

by Anonymous Monk
on Dec 21, 2011 at 04:04 UTC ( [id://944523]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl script to print Next line after Pattern Matching
in thread Perl script to print Next line after Pattern Matching

I recognize that. So the point is to loop over the file handle; extract the next part when the current part is interesting.
  • Comment on Re^3: Perl script to print Next line after Pattern Matching

Replies are listed 'Best First'.
Re^4: Perl script to print Next line after Pattern Matching
by Anonymous Monk on Dec 21, 2011 at 15:12 UTC
    Should have added above that that works only because the same file handle being used in two places in the same loop does not go out of whack, and state is retained on the next iteration.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2025-07-14 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.