Suneel Kumar B wrote:
Hi Goodies,

Hello,

(Goodies???)

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..??

Yes you can do that. However, if the replacement strings are not the same size as the original strings then it could get a bit complicated (to say the least!) At a minimum you will have to know about seek() and tell().



John
--
use Perl;
program
fulfillment

--
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