Re: How to open a file for read as well as write

2004-06-15 Thread James Edward Gray II
On Jun 15, 2004, at 10:02 AM, Ramprasad A Padmanabhan wrote: No that is not what I wanted I found that out anyways thanks Want to bet? Guess how the code you posted works, behind the scenes. ;) Seriously, I'm glad you found your answer. James -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

Re: How to open a file for read as well as write

2004-06-15 Thread Ramprasad A Padmanabhan
No that is not what I wanted I found that out anyways thanks { local(@ARGV)=($filename); local($^I)=".BAK"; while(<>){ if(){ s/$oldvar/$newvar/; } print; } } On Tue, 2004-06-15 at 19:02, Stephan Hochhaus wrote: > Am 15.06.2004 um 12:48 schrieb Ramprasad A Padmanabhan

Re: How to open a file for read as well as write

2004-06-15 Thread James Edward Gray II
On Jun 15, 2004, at 5:48 AM, Ramprasad A Padmanabhan wrote: I want to open a file using a perl script and change a particular variable in it. I think by setting the $^I variable I can open a file for read and write, But I am not getting any examples anywhere You CAN open a file for read and write,

How to open a file for read as well as write

2004-06-15 Thread Ramprasad A Padmanabhan
I want to open a file using a perl script and change a particular variable in it. I think by setting the $^I variable I can open a file for read and write, But I am not getting any examples anywhere Thanks Ram -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI