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

Re^8: Matching string, then getting next line

by minixman (Beadle)
on Mar 09, 2006 at 03:15 UTC ( #535344=note: print w/replies, xml ) Need Help??


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

Not sure this is going to work, as it will never find the message i am looking for, should i not be using something like the (.*) so store the contents between Message Dump: and Message Dump:
  • Comment on Re^8: Matching string, then getting next line

Replies are listed 'Best First'.
Re^9: Matching string, then getting next line
by wazoox (Prior) on Mar 09, 2006 at 04:33 UTC
    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://535344]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2019-09-23 01:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (274 votes). Check out past polls.

    Notices?