Hi all, the problem is that the script is really erroneous. Where you read
"q(..." should be "p( ..."
The p() function is a part of the CGI.pm modules and stands for a new
paragraph.

the right script is:
#!/usr/bin/perl -w
# cgi-bin/ice_cream: program to answer *and generate* ice cream
# favorite flavor form (version 3)
use CGI qw(:standard);
my $favorite = param("flavor");
print header, start_html("Hello Ice Cream"), h1("Hello Ice Cream");
if ($favorite) {
    print p("Your favorite flavor is $favorite.");
} else {
    print hr, start_form; # hr() emits html horizontal rule: <HR>
    print p("Please select a flavor: ", textfield("flavor","mint"));
    print end_form, hr;
}


Thanks,
bnegrao.

----- Original Message -----
From: "Bruno Negrao - Perl List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, October 03, 2002 9:44 PM
Subject: Re: CGI simple but not working


> Hello Nathanael and other guys,
> > First of all, if possible, use the Llama 3rd, not 2nd.
> It's not... :-(
>
> > Second, can you give the expected output and the actual output.
> I tried to send the pictures to this list but my e-mail was rejected as it
> grew upon 50000 bytes....
> In sumary, this script should generate an one field form. But what appears
> in the screen are the strings inside the "q()" function.
>
> > What platform are you on, what version of perl are you using, etc?
> Redhat 6.2 perl version 5.005_03 built for i386-linux
> But i tested this script with RH7.2 v5.6.0 built for i386-linux and it
> doesn't work too
>
> Thanks
> Bruno.
> > Nathanael
> >
> > "Ain't no blood in my body, it's liquid soul in my veins"
> > ~Roots Manuva
> >
> >
> > --
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to