Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 exploiting the Monastery: (3)
As of 2014-10-26 01:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (149 votes), past polls