Front page | perl.beginners |
Postings from December 2002
using \n in a cgi script
Thread Next
From:
dhoubrechts
Date:
December 31, 2002 02:05
Subject:
using \n in a cgi script
Message ID:
3E117928.DD1EF17A@cybernet.be
Every time I want to use a perl script as a cgi the "\n" ending the
phrases doesn't make it going at the beginning of the next line. Why ?
Several script coming from Perl in Action (O'Reilly) have those "\n"
ending those phrases.
Here are some lines coming from one of them :
sub document_de_garde {
my $actif = shift;
return unless $actif;
print "<H1>Salut\ !</H1>\n";
print "Bienvenue dans notre magasin d'habillement\ !\n";
print "Faites votre choix dans le menu ci-dessous.\n";
menu_boutique();}
If I want to use them a have to change using print p(...); ?
Thanks for response.
Thread Next
-
using \n in a cgi script
by dhoubrechts