- Millerprint "Hello world\n"; { local(*STDOUT); open(STDOUT, ">some_other_world.txt") or die $!; print "Hi other world\n"; close STDOUT; } print "Goodbye world\n";
In reply to Re: Redirecting STDOUT, lexically scoped
by wind
in thread Redirecting STDOUT, lexically scoped
by moritz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |