multiprint("hello\n", LOGFILE, TEMP); sub multiprint { my $text = shift; for my $fh (@_) { print $fh $text; } }
In reply to Re: Is it possible to write to 2 files, eg. print LOGFILE,TEMP 'hello'?
by nardo
in thread Is it possible to write to 2 files, eg. print LOGFILE,TEMP 'hello'?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |