Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^9: Matching string, then getting next line

by wazoox (Prior)
on Mar 09, 2006 at 09:33 UTC ( #535354=note: print w/replies, xml ) Need Help??


in reply to Re^8: Matching string, then getting next line
in thread Matching string, then getting next line

Well if you know what's you're looking for, probably matching it directly would be easier then.
my $message; while (<FILE>) { if ( m/\d\d \d\d\/\d\d\/\d\d \d\d:\d\d:\d\d:\d\d\d .*/ ) { $message .= $_ } }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2019-11-13 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (70 votes). Check out past polls.

    Notices?