Re: Modify File in Place



On Apr 27, 6:40 pm, Paul Lalli <mri...@xxxxxxxxx> wrote:
On Apr 27, 1:34 pm, banker123 <bradbrock...@xxxxxxxxx> wrote:

Also I want this
script to edit the variable as defined above and leave all other
records in the file with the existing file name.

That's not what your original script did. Your original script was
only printing the $arg value, not anything else. Please take more
care to compose your posts, and you'll get better help.

Whilst I agree with the sentiment in general I think you are being a
little unfair in this case. Unless one understands the how "in -place
editing" works it is far from obvious that one needs to print all the
unchanged data too. If the OP had understood how how "in -place
editing" works we wouldn't have had a question.

.



Relevant Pages