in reply to Is something wrong with the below Script??

You can edit files in place using perl -i

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.
  • Comment on Re: Is something wrong with the below Script??

Replies are listed 'Best First'.
Re^2: Is something wrong with the below Script??
by Anonymous Monk on May 19, 2009 at 06:41 UTC
    According to perlrun, -i doesn't actually edit in-place, it opens 2 filehandles and does renaming :)
      That may be true, but does it matter?

      --
      use JAPH;
      print JAPH::asString();

        koti688 seems to think it does.