try:foreach $line (<LOGFILE>)
while (my $line = <LOGFILE>)
There are many other problems in your script, but that's probably why you're not looping as you want on the file lines.
EDIT: davido said it all and still succeeded to post one minute before me. ;-)
In reply to Re: new file per line output
by Laurent_R
in thread new file per line output
by monteryjack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |