if ( @ARGV ) { my $file = shift(@ARGV); open(my $fh, "> $file") or die("Unable to open output file \"$file\": $!\n"); select($fh); } print "this is a test\n";
In reply to Re: assign File Handles to Scalar Variables (select)
by ikegami
in thread assign File Handles to Scalar Variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |