updated module name … well, I do like cats :-)... my $mode = '>'; if ($option eq 'append') { $mode = '>>'; }; close STDOUT; open (STDOUT, $mode, $fname) or die "cannot open (STDOUT) $fname: $!"; ...
In reply to Re: Redirecting Standard Output inside perl
by soonix
in thread Redirecting Standard Output inside perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |