On 1/11/06, Rajarshi Das <[EMAIL PROTECTED]> wrote:
> Is it possible that if an inplace edit is attempted without creating a
> backup file, perl cannot delete the original file to replace with the
> modified file and, the original file will be left unmodified ?
I'm not sure about what you're asking. If it's what I'm thinking, I
might have asked like this: In the event that Perl fails while doing
in-place editing, perhaps because there isn't sufficient disk space to
hold both the new file and the backup file, what happens? Is the
original file left unmodified in that case?
Is that your question? If that's it, or close, you may be able to find
your answer in the perlrun manpage, which describes the behavior of
switches such as "-i.bak". If that doesn't tell you what you need,
please ask again.
http://search.cpan.org/~nwclark/perl-5.8.7/pod/perlrun.pod
Cheers!
--Tom Phoenix
Stonehenge Perl Training
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>