in reply to Print to the screen and a log at the same time?
sub _print { my ($msg) = @_; print $msg, "\n"; print LOG $msg, "\n"; } _print("hello"); _print("world");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Print to the screen and a log at the same time?
by ikegami (Patriarch) on May 09, 2006 at 15:59 UTC |