Re: How to replace a text in a file

2003-08-14 Thread Jeff 'japhy' Pinyan
On Aug 5, Vinay Thombre said: >I am novice to Perl and learning very basic things. I want to replace a text >in a file with new text. I want to do it programatically. How can I do that? I hope you've got a good book or two, such as "Learning Perl" (the llama book) published by O'Reilly. The basi

Re: How to replace a text in a file

2003-08-14 Thread David K. Wall
Vinay Thombre <[EMAIL PROTECTED]> wrote: [attribution inserted] "Jeff 'japhy' Pinyan" <[EMAIL PROTECTED]> wrote open INPUT, "< in.txt" or die "can't read in.txt: $!"; open OUTPUT, "> out.txt" or die "can't write out.txt: $!"; while (my $line = ) { # do something to $line print OUTPUT

Re: How to replace a text in a file

2003-08-09 Thread Vinay Thombre
> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 10:52 PM Subject: Re: How to replace a text in a file > On Aug 5, Vinay Thombre said: > > >I am novice to Perl and learning very basic things. I want to replace a text > >in a file with new text. I want to do it progra

Re: How to replace a text in a file

2003-08-07 Thread Janek Schleicher
Vinay Thombre wrote at Tue, 05 Aug 2003 17:31:32 +0530: > I am novice to Perl and learning very basic things. I want to replace a > text in a file with new text. I want to do it programatically. How can I > do that? What have you learned so far yet? What is your tutorial? What does it say about