Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

geoff (2013)

geoff
  reversethis-{gro ... om} {ta} {ffoeg}
http://www.modperlcookbook.org/

see http://www.modperlcookbook.org/~geoff/ [modperlcookbook.org] for personal information, links to presentations, GPG key, and so on.

Journal of geoff (2013)

Tuesday April 16, 2002
07:45 AM

Tie::File

[ #4234 ]
last night I went to the philly pm to hear Mark Dominus talk about Tie::File. Tie::File is a pretty cool interface for tie()'ing a file to an array, which you can then push(), pop(), shift(), and otherwise manipulate in order to make changes to the underlying file.

very cool.

the changes are made in real time, with the benefit of a heuristic performance inhancment. so, if you are manipulating lines (the values in the array) at random the changes are made immediately, but if you are working on sections of the file they are buffered for performance.

Tie::File has been integrated into core for 5.8, but you can get it from CPAN now if you want to play around with it.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.