Re: Apache and Perl in Windows
- From: "Paul Lalli" <mritty@xxxxxxxxx>
- Date: 23 Dec 2005 12:45:01 -0800
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
.
- Follow-Ups:
- Re: Apache and Perl in Windows
- From: Brian Wakem
- Re: Apache and Perl in Windows
- References:
- Apache and Perl in Windows
- From: Arn Anderson
- Re: Apache and Perl in Windows
- From: Brian Wakem
- Apache and Perl in Windows
- Prev by Date: Re: Eval not reseting
- Next by Date: Re: Apache and Perl in Windows
- Previous by thread: Re: Apache and Perl in Windows
- Next by thread: Re: Apache and Perl in Windows
- Index(es):
Relevant Pages
|