in reply to Re: Is something wrong with the below Script??
in thread Is something wrong with the below Script??

According to perlrun, -i doesn't actually edit in-place, it opens 2 filehandles and does renaming :)
  • Comment on Re^2: Is something wrong with the below Script??

Replies are listed 'Best First'.
Re^3: Is something wrong with the below Script??
by wol (Hermit) on May 19, 2009 at 11:27 UTC
    That may be true, but does it matter?

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

      koti688 seems to think it does.
        I think koti688 just wants the file with the substitutions in it to have the same name as the original file, without the need to write more code to handle temp files.

        If I were in that situation, I wouldn't cares whether there might be a temporary file involved somewhere behind the scenes, so long as my code can be simple.

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