Our fellow list member Denham wrote:
>Is there some way to set the special variable $/ to a regular expression
>such as (.+?):(\d+):(.*)

Well, man perlvar says:

perlvar> Remember: the value of $/ is a string, not a regexp.
perlvar> AWK has to be better for something :-)


>I am trying to process a logfile, with a time based entry as an entry
>identifier i.e.
>Wed Mar 31 11:40:45 2004
>Thread 1 advanced to log sequence 4636


I'm not sure I understand the parsing requrement correctly, but perhaps you can just 
read each line and search for the timestamp pattern?

Cheers,

Srikanth Madani
A bird in the hand makes it awfully hard to blow your nose.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to