Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 imbibing at the Monastery: (10)
As of 2015-07-06 09:27 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 (70 votes), past polls