in reply to Re: "Updating" files.
in thread "Updating" files.

I just tried the following and still no dice ...

open ZIP, ">myinfo.txt"; $^I = "myinfo.txt.bak"; while( <> ) { s/^Author:.*/Author: Johnny5/; s/^Phone:.*\n//; print; } close ZIP;

Replies are listed 'Best First'.
Re^3: "Updating" files.
by zwon (Abbot) on Jan 25, 2009 at 21:17 UTC

    while(<ZIP>)

Re^3: "Updating" files.
by roboticus (Chancellor) on Jan 26, 2009 at 16:05 UTC
    neutron:

    Perhaps it would help if you would (a) Open the file in read mode, and (b) use your file handle!

    ...roboticus