[Xitami] HTML using Perl
Hugo Notti
xitami@lists.xitami.org
Wed, 2 Jan 2002 16:46:38 +0100
For escape characters:
"\n" is not recognized by any browser because it is perl-syntax, not html.
The same applies for other escapes.
If you use
print "I want this\nand another line";
you will get one line in the browser but two lines in the source code (as
seen from the browser).
In order to have two lines, you have to use
print "I want this<br>and another line";
which will be one line in source code but two lines in the browser.
Best regards,
Hugo
----- Original Message -----
From: "TOM MCGOVERN" <TMCGOVERN@broward.org>
To: "<" <xitami@lists.xitami.org>
Sent: Monday, December 31, 2001 3:45 PM
Subject: [Xitami] HTML using Perl
Hello Folks,
Why is it that the "\n" and other escape characters in my Perl script are
not being recognized in the IOExplorer browser?? I start the html code with
the prescribed .....print "Content-type: text/html\n\n";..... I'm running
Win NT 4.0 and perl5 and IOExplorer 5.5.
By the way, after much pain and suffering, I discovered from this Q&A list
that I had to include the ".pl=application/x-http-perl" statement in the
Mime section and "pl=C:\perlpath\perl.exe" in the Filter section of the
Defaults.cfg file in order to get my NT 4.0 to execute the Perl5 script.
Thanks for that.
Regards to all!