Re: Substitution within an html page

2008-08-05 Thread Dr.Ruud
"John W. Krahn" schreef: > while ( my $str = ) > { > chomp; chomp $str; > Although you don't need the chomp() because you are not modifying the > end of the line. Right. :) -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: Substitution within an html page

2008-08-05 Thread John W. Krahn
Amit Saxena wrote: Try this code fragment (have not run it though) :- #/usr/bin/perl use warnings; use strict; open (HTMLFILE, "/tmp/test1.html") or die 'Can't create HTML FILE /tmp/test1.html : $!\n\n"; my $str; while (chomp($str = )) { That is *NOT* the correct way to read a line in a wh

Re: Substitution within an html page

2008-08-04 Thread Amit Saxena
On Sat, Aug 2, 2008 at 3:12 AM, David Allender <[EMAIL PROTECTED]> wrote: > Hello all, > > I've been trying multiple different ways, but I am still unable to > have the output that i am looking for. > > What I'm trying to do is change certain text in an html file. How > would i go about doing tha

Substitution within an html page

2008-08-02 Thread David Allender
Hello all, I've been trying multiple different ways, but I am still unable to have the output that i am looking for. What I'm trying to do is change certain text in an html file. How would i go about doing that successfully? what i know is that you call open such as open(HTML, /path); and from