in reply to Re^2: Log Parsing
in thread Log Parsing
Additionally you should check if open succeeded: open filehandle, ">", "/home/mj/newlogs$count.log" or die "Can't write to file: $!";open filehandle, ">", "/home/mj/newlogs$count.log"; # or open filehandle, '>', '/home/mj/newlogs/ . $count . '.log';
(Update: fixed typo spotted by Corion++)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Log Parsing
by mattwortho (Acolyte) on Sep 07, 2007 at 13:19 UTC |