PureBytes Links
Trading Reference Links
|
On Fri, 6 Nov 1998, Mike Campbell wrote:
> You mean: open (OUT, ">$outfile") || die("Can't open $outputfile $!");
Correct, and I should have added 'untested' since I typed that straight
into the email.
> Also, as a minor nit, you don't need to "quotify" $inputfile on the
> open. open (IN, $inputfile) ... is slightly more efficient as perl
> doesn't interpolate the scalar into that string. The optimizer _may_
> notice this now, but it didn't used to.
Some folks also use the open(IN,"<inputfile") to expressly say the file
is for input, as opposed to output. I should probably do this since I
often forget the > on the output files :-)
Cheers,
Jim
|