in reply to Writing to Screen and file on Win32
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$/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Writing to Screen and file on Win32
by Aristotle (Chancellor) on Oct 02, 2003 at 20:07 UTC | |
by BrowserUk (Patriarch) on Oct 02, 2003 at 22:16 UTC | |
by Aristotle (Chancellor) on Oct 02, 2003 at 23:45 UTC | |
by jonadab (Parson) on Oct 03, 2003 at 04:53 UTC |