Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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?
[Tanktalus]: it's all the same process, and, IIRC, the same mechanized object.
[Tanktalus]: hmm, no, the mech object for posting isn't the same as reading, but it's the same as the logging in one.
[Tanktalus]: I really need to rewrite this whole thing anyway. :)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2018-07-15 21:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (326 votes). Check out past polls.

    Notices?