Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Rewriting into file

by wind (Priest)
on Jun 20, 2011 at 06:03 UTC ( #910499=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://910499]
help
Chatterbox?
[thezip]: oops... My mind is backwards (this works): find . -mindepth 2 -name "*.csv" | xargs wc -l

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2016-12-06 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (113 votes). Check out past polls.