Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: help me on seek and tell function

by tachyon (Chancellor)
on Nov 24, 2004 at 07:15 UTC ( #410072=note: print w/ replies, xml ) Need Help??


in reply to help me on seek and tell function

Discover perlfaq. Specifically from perlfaq5 read How do I change one line in a file/delete a line in a file/insert a line in the middle of a file/append to the beginning of a file?

Inplace editing may be what you want.

perl -pi.bak -e 's/this string/that string/g' some.file

cheers

tachyon


Comment on Re: help me on seek and tell function
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://410072]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2015-07-08 02:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls