> 
> On Aug 31, Jim said:
> 
> >open (FILE, "+>",  $file) or die "cannot open $file: $!";
> 
> I think you want "+>>" there, or else it will overwrite the 
> contents of the file and you won't be able to determine how 
> many lines there were originally.

Thanks.  I was not sure what he was trying to do. 

> 
> >flock (FILE, 2) or die "cannot flock $file: $!";
> 
> For safety's sake, use Fcntl's flock() constants.

I ususally do, but got a little lazy on the answer :)
Thanks


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.745 / Virus Database: 497 - Release Date: 8/27/2004
 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to