in reply to Re^2: Every Perl Script Is Failing Compilation
in thread Every Perl Script Is Failing Compilation
You seem to have a LOT of stuff in the @INC path. Probably not an issue, but sometimes multiple versions can be trouble. I was not able to see immedidate problem with your command line stuff although there may be some file permission problems.
I can replicate your first error message in the following code. As I mentioned before, "use vars(....);" appears in File::Spec. When vars.pm can't be found or "used" $VERSION doesn't have package scope.
Anyway, start with simple code and then work from there. You have NO chance until you get this small program working:
At this point, I don't know how to help further. I can replicate your first error code in just a few lines of test code. Get stuff working from command line with you as the user. Then working from that, work on how to get Apache CGI server able to do the same thing.#!/usr/bin/perl -w use strict; use File::Spec; use vars qw(@ISA $VERSION); $VERSION = '3.2501'; print "Im ok if no warnings"; __END_ If I comment out: use vars qw(@ISA $VERSION); I get your error mesage: Global symbol "$VERSION" requires explicit package name at C:\TEMP\simple.pl line 8.
You may find this of help: http://perl.apache.org/docs/general/perl_reference/perl_reference.html#The__INC_array as well as Unix file permission (google on chmod).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Every Perl Script Is Failing Compilation
by Anonymous Monk on Sep 10, 2009 at 08:59 UTC | |
by Marshall (Canon) on Sep 10, 2009 at 15:41 UTC | |
|
Re^4: Every Perl Script Is Failing Compilation
by Anonymous Monk on Sep 11, 2009 at 14:10 UTC |