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++)
In reply to Re^3: Log Parsing
by moritz
in thread Log Parsing
by mattwortho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |