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

Pat Regan thehead at patshead.com
Thu Mar 11 19:54:17 CST 2004


EEP!  I need to read more carefully...

I'd definitely vote for Tie::File then :p.

Sorry!

Pat

On Thu, 11 Mar 2004, Ricardo SIGNES wrote:

> * 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
>




More information about the ABE-pm mailing list