update Fri Apr 16 06:37:03 PDT 2010
[pkgsrc.git] / devel / p5-IO-InSitu / DESCR
1 The Perl 5 module IO::InSitu provides the open_rw( ) subroutine:
2 It takes the names of two files: one to be opened for reading, the
3 other for writing. It returns a list of two filehandles, opened to
4 those two files. However, if the two filenames refer to the same
5 file, open_rw( ) first makes a temporary copy of the file, which
6 it opens for input. It then opens the original file for output. In
7 such cases, when the input filehandle is eventually closed, IO::InSitu
8 arranges for the temporary file to be automatically deleted.