http://www.perlmonks.org?node_id=910499


in reply to Rewriting into file

Just use read/write mode +< then.

Replies are listed 'Best First'.
Re^2: Rewriting into file
by pr09 (Novice) on Jun 20, 2011 at 06:12 UTC
    Yes,but how can i only replace the particular value. eg I have a file acb.txt and its contents are: P|abcd now i want acbd to be capitalized to ABCD and the then my file should look like P|ABCD