if (defined $outfile) { open OUTPUT, '>', $outfile; select OUTPUT; } # then just use "print"
Update: Fletch is right. I've removed the misleading reference to STDOUT.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re: Swiching between output to file and STDOUT
by davorg
in thread Switching between output to file and STDOUT
by loris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |