Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^8: Matching string, then getting next line

by minixman (Beadle)
on Mar 09, 2006 at 08: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 09: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?
[marto]: Morning, looks like our client office will be closed due to bad weather

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2018-01-17 07:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How did you see in the new year?










    Results (196 votes). Check out past polls.

    Notices?