[Xitami] HTML using Perl

TOM MCGOVERN xitami@lists.xitami.org
Wed, 02 Jan 2002 10:52:32 -0500


This is a MIME message. If you are reading this text, you may want to 
consider changing to a mail reader or gateway that understands how to 
properly handle MIME multipart messages.

--=_95C897DE.8CED9328
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Thanks Hugo that works fine.
Do you know of an on-line tutorial source on this kind of stuff?

Regards,

Tom


>>> hugo_notti@gmx.net 01/02/02 10:46AM >>>
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=3Dapplication/x-http-perl" statement in the
Mime section and "pl=3DC:\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!



--
Xitami Users Mailing List -- For Xitami support
To unsubscribe: http://lists.xitami.org/mailman/listinfo/xitami

--=_95C897DE.8CED9328
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Description: HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-1"=
>
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR></HEAD>
<BODY style=3D"MARGIN-TOP: 2px; FONT: 8pt MS Sans Serif; MARGIN-LEFT: =
2px">
<DIV><FONT size=3D1>Thanks Hugo that works fine.</FONT></DIV>
<DIV><FONT size=3D1>Do you know of an on-line tutorial source on this kind =
of=20
stuff?</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>Regards,</FONT></DIV>
<DIV><FONT size=3D1></FONT>&nbsp;</DIV>
<DIV><FONT size=3D1>Tom</FONT></DIV>
<DIV><BR><BR>&gt;&gt;&gt; hugo_notti@gmx.net 01/02/02 10:46AM=20
&gt;&gt;&gt;<BR>For escape characters:<BR><BR>"\n" is not recognized by =
any=20
browser because it is perl-syntax, not html.<BR>The same applies for =
other=20
escapes.<BR><BR>If you use<BR><BR>print "I want this\nand another=20
line";<BR><BR>you will get one line in the browser but two lines in the =
source=20
code (as<BR>seen from the browser).<BR><BR>In order to have two lines, you =
have=20
to use<BR><BR>print "I want this&lt;br&gt;and another line";<BR><BR>which =
will=20
be one line in source code but two lines in the browser.<BR><BR>Best=20
regards,<BR><BR>Hugo<BR>----- Original Message -----<BR>From: "TOM =
MCGOVERN"=20
&lt;TMCGOVERN@broward.org&gt;<BR>To: "&lt;"=20
&lt;xitami@lists.xitami.org&gt;<BR>Sent: Monday, December 31, 2001 3:45=20
PM<BR>Subject: [Xitami] HTML using Perl<BR><BR><BR>Hello Folks,<BR><BR>Why =
is it=20
that the "\n"&nbsp; and other escape characters in my Perl script =
are<BR>not=20
being recognized in the IOExplorer browser?? I start the html code =
with<BR>the=20
prescribed&nbsp; .....print "Content-type: text/html\n\n";..... I'm=20
running<BR>Win NT 4.0 and perl5 and IOExplorer 5.5.<BR><BR>By the way, =
after=20
much pain and suffering, I discovered from this Q&amp;A list<BR>that I had =
to=20
include the ".pl=3Dapplication/x-http-perl" statement in the<BR>Mime =
section and=20
"pl=3DC:\perlpath\perl.exe" in the Filter section of the<BR>Defaults.cfg =
file in=20
order to get my NT 4.0 to execute the Perl5 script.<BR>Thanks for=20
that.<BR><BR>Regards to all!<BR><BR><BR><BR>--<BR>Xitami Users Mailing =
List --=20
For Xitami support<BR>To unsubscribe: <A=20
href=3D"http://lists.xitami.org/mailman/listinfo/xitami">http://lists.xitam=
i.org/mailman/listinfo/xitami</A><BR></DIV></BODY></HTML>

--=_95C897DE.8CED9328--