RE: [PBML] Setting special variable $/ to a regular expression
- Our fellow list member Denham wrote:
>Is there some way to set the special variable $/ to a regular expressionWell, man perlvar says:
>such as (.+?):(\d+):(.*)
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 entryI'm not sure I understand the parsing requrement correctly, but perhaps you can just read each line and search for the timestamp pattern?
>Wed Mar 31 11:40:45 2004
>Thread 1 advanced to log sequence 4636
A bird in the hand makes it awfully hard to blow your nose.