[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] p-tag does not break lines



Hello Folks,


May it be that Active Perl hehaves differently from Macperl?
In my Macperl output window following code results in a readable HTML Page
linebreaks after each line of the original Text.

 #!/usr/bin/perl

open (TEXT,"text.txt");
while(<TEXT>) {
chomp;
push (@list,$_);
}

use CGI header,start_html, end_html;
print header();
print start_html(halli_Hallo);
foreach $i (@list) {
print "\<P\> $i \<\/P\> \n";
}
print end_html();

If I execute this script on my Webserver (running microsoft IIS 5 and Active
Perl) I receive somethong like:

<body><P>text (without any linebreaks)
</P>

If anyone knows what is wrong please help me!

Bye Thomas


==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org