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

Re: [users@httpd] Re: what is perl 's syntax



eric lin <fsshl@centurytel.net> writes:

> > foreach (param()) {
> >   print "<p>\n";
> >   print "$_ has value(s) => ";
> >   print param($_);
> >   print "</p>\n";
> > }
> > 
> > print end_html();
> > 
> > 
> Same thing, only show "This is an example CGI script."
> 
> I keep doubt it is my httpd and perl module did not configure well
> 
> any opinion?

You need to pass parameter(s) to the script else the foreach loop will
not be entered (the parameters are empty).

If the name of the script is "test.pl" on your local machine in the
cgi-bin ScriptAlias, then something like:

http://localhost/cgi-bin/test.pl?name1=value1&name2=value2

Elizabeth



Reply to: