in reply to Re: Inserting content into a file at a particular location
in thread Inserting content into a file at a particular location

>> does not work

The script just hangs at the point when it reaches the insertion code.

>> Note : the file handle is opened in the following mode "+>>".

Would Tie::File work if the file permissions were changed?

The reason i'm using TIE::File is to modify the file in place (insert content on finding placeholders within the file) instead of using a temp file to achieve the same.

  • Comment on Re^2: Inserting content into a file at a particular location

Replies are listed 'Best First'.
Re^3: Inserting content into a file at a particular location
by JavaFan (Canon) on Aug 25, 2010 at 10:00 UTC
    Would Tie::File work if the file permissions were changed?
    Well, appropriate file permissions (read, write) are of course required. But file permissions don't solve the issue of the file opened in append mode. Nor the problem of inserting a newline instead of using splice.