in reply to Best way to pick apart log file.
Try inserting into your while loop:
next if m/^\s*$/;
It appears your code is failing because there are blank lines, or lines not delimited with ';'. Is that true?
mkmcconn
By the way, I really admire that line:
($dst, $service) = (split /;/)[11, 12];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Best way to pick apart log file.
by Rich36 (Chaplain) on Dec 27, 2001 at 23:00 UTC | |
Re: Re: Best way to pick apart log file.
by dru145 (Friar) on Dec 27, 2001 at 23:21 UTC |
In Section
Seekers of Perl Wisdom