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