Re: Apache and Perl in Windows



Brian Wakem wrote:
> > #!c:\Perl\bin\perl.exe
> > use CGI qw(:all);
> > use Strict;
>
> Should be lower case s.

Should be, but Windows Perl won't complain about it. It also won't
actually load the strict pragma. This is a completely meaningless and
useless statement.

> > foreach $var (sort keys %ENV) {
>
> Global symbol "$var" requires explicit package name at ....

The OP wouldn't have gotten that error, because strict.pm is not
actually loaded.

> > @values = split(/&/,$ENV{'QUERY_STRING'});
>
> Global symbol "@var" requires explicit package name at ...

Pretty sure you meant "@values", but again, the OP wouldn't have
gotten this.

> There are many more errors. I can't be bothered to point them all out.
> Needless to say the code does not compile.

With the LWP/LPW typo, I have to agree with this. The strict
violations, however, do not prevent compilation.

Paul Lalli

.



Relevant Pages