Either type "perl scriptname.pl" or type "chmod a+x scriptname.pl"

S.

On Fri, 21 Mar 2003, Brian Smart wrote:

> Hi All,
> I am trying to get the following cgi script called ice_cream.cgi to work. I
> has been copied from the 'Learning perl' book. When I call the script I get
> an error message:
> 
> Error Message: Permission denied
> Error Number: 13
> 
> Can someone explain what I might be doing wrong?
> 
> #!/usr/bin/perl -w
> 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;
>         print p("Please select a flavor: ", textfield("flavor","mint"));
>         print end_form, hr;
>        }
> 
> 
> Thanks for your help.
> 
> Regards
> 
> Brian Smart
> 
> 
> 

-- 
Shevek                                    http://www.anarres.org/
I am the Borg.                         http://design.anarres.org/


Reply via email to