[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Quote Plus Evaluation


  • To: Mike Campbell <mcampbell@xxxxxx>
  • Subject: RE: Quote Plus Evaluation
  • From: Jim Michael <genepool@xxxxxxxxxx>
  • Date: Fri, 6 Nov 1998 18:23:21 -0500 (EST)
  • In-reply-to: <13891.24154.861411.616609@xxxxxxxxxx>

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