use strict; use warnings; open STDERR,">","$0.log" or die $!; ... ... warn "this goes to my log file"; ... print "but this doesn't\n"; ....
mr.nick ...
In reply to Re: How to create a log file?
by mr.nick
in thread How to create a log file?
by anurag_perl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |