sub _print { my ($msg) = @_; print $msg, "\n"; print LOG $msg, "\n"; } _print("hello"); _print("world");
In reply to Re: Print to the screen and a log at the same time?
by punkish
in thread Print to the screen and a log at the same time?
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |