Using this way is good if you only have to print one time, instead of using 'select'. It is really not a good idea to change STDOUT, but rather just make a new filehandle like 'OFILE' shown above.open(OFILE, ">test.txt"); # make a filehandle print OFILE "this is a test.\n"; # print to filehandle
In reply to Re: STDOUT redirect in Perl
by staeryatz
in thread STDOUT redirect in Perl
by jay469
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |