Charles K. Clarkson wrote:
Suneel Kumar B <mailto:[EMAIL PROTECTED]> wrote:

: Hi Goodies,

    Wow! We're a snack food!   :)


: I have a situation where in, iam updating a file by replacing few : strings in some lines with another string. While doing this, Can i : have an option by which i could open a file for both read and : write simultaneously, so that i could search and replace the : string straight away..??

    Sounds like you need in place editing. Check out the -i switch
in the 'perlrun' documentation for an example.


HTH,

Charles K. Clarkson

or Tie::File,

perldoc Tie::File

http://danconia.org

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to