in reply to Filehandles vs Uninitialized Values in pattern match
You might find it useful to have a look at Tie::File. This allows you to treat a file just as if it was an array. Thus, adding new lines at the end of the file is as simple as pushing onto the array. If the file is large you might not get great performance so YMMV.
I hope this is useful.
Cheers,
JohnGG
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Filehandles vs Uninitialized Values in pattern match
by erroneousBollock (Curate) on Nov 23, 2007 at 16:34 UTC |
In Section
Seekers of Perl Wisdom