No such thing as a small change | |
PerlMonks |
Re: Re: Re: Safe way to open filesby Anonymous Monk |
on Jun 16, 2002 at 22:26 UTC ( [id://174987]=note: print w/replies, xml ) | Need Help?? |
No. You do not want an unconditional seek in the routine. If it was
opened with O_TRUNC or O_RDONLY it isn't
needed (neither is truncate), if it was opened with
O_APPEND then you definitely do not want to seek nor
truncate.
In Section
Seekers of Perl Wisdom
|
|