tempfile <-> IO::Handle::new_tmpfile?
can I use IO::Handle::new_tmpfile in an Perl script that's run on
postinst? The package has to Predepend on perl, right? I'll use this
tempfile to modify a conffile (it *has* to be modified, it's not an
option)... what's the proper way of moving the file back into place?
system "cat $tempfile > $conffile";
is ok (that's in order to preserve permissions and because rename
doesn't work across file systems). (Sidenote: perhaps this whole
question should go into that document Manoj is preparing)
BTW, Why isn't File.pm included on perl-base? Several other IO things
To UNSUBSCRIBE, email to email@example.com
with a subject of "unsubscribe". Trouble? Contact firstname.lastname@example.org