In a pinch, you can do it this way...
sub myprint { print @_; # Send to standard output. print FILE @_; # Also send to another filehandle. }
This approach has limitations, of course.
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/
In reply to Re: Writing to Screen and file on Win32
by jonadab
in thread Writing to Screen and file on Win32
by banesong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |