in reply to updating to a file

Simply open the file in append mode:
if (open (my $fh, '>>', "manager.properties")) { print $fh "test\n"; close ($fh); }

Replies are listed 'Best First'.
Re^2: updating to a file
by rev_1318 (Chaplain) on Sep 21, 2005 at 11:23 UTC
    That solves only the overwrite problem. Appending to a file doesn't solve the update problem. For that, you need inplace edit (as GrandFather shows), or via a Tie to the file. But then, a different data structure would be more suitable.

    Paul