[ABE.pm] Append a line at bottom of file

Ricardo SIGNES rjbs-perl-abe at lists.manxome.org
Thu Mar 11 18:45:34 CST 2004


* Pat Regan <thehead at patshead.com> [2004-03-11T19:25:48]
> 
> How about openning the files in append mode?
> 
> open(FILE, '>>', 'filename.sql');

He doesn't want to do it for files that already have that at the end, so
you'd have to do two passes.  (One to read to find the files that
matter, one to append.)  Right?

Tie::File might not be faster, but it'd be easier to read.  I think.

-- 
rjbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040311/6a512a3b/attachment.bin


More information about the ABE-pm mailing list