in reply to Re: Pimp My RegEx
in thread Pimp My RegEx
while( <DATA>) { if (/^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d:\d\d\d/) { $count++; #if (defined($fullrec)) { # process($fullrec); #} $fullrec = $_; } else { $fullrec .= $_; } } #if (defined($fullrec)) { # process($fullrec); #}
or look at my solution to eliminate this redundancy.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Pimp My RegEx
by demerphq (Chancellor) on May 31, 2005 at 19:03 UTC |