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

Re: [cobalt-users] cgi-wrap?



on 4/22/02 5:52 PM, daniel at dan@xxxxxxxxxxxxxx wrote:

> #!/usr/bin/perl -w
> 
> package PackageName;
> require Exporter;
> 
> our @ISA = qw(Exporter);
> our @EXPORT_OK = qw(&addzero);
> 
> ....
> 
> those are the lines that the wrapper seems to be having problems with
> the error i get being:
> 
> "malformed header from script.  Bad header=Use of reserved word "our" is :
> /usr/cgiwrap/cgiwrap"
> 
> i have to use "our" since i'm using 'strict', and "my" is not an option
> because these are declarations inside a module.  ie. "&addzero" is used in a
> few other cgi scripts so they have to have access to the subroutine.
> 
> i bypassed the error by just deleting the "our" and "use strict" but that's
> not proper coding and i'd like to find out how to do it properly.
> 

See my earlier message, turn off your warning (-w) flag and that could well
solve it:

#!/usr/bin/perl

 

-- 
Olaf Alders

olaf@xxxxxxxxxxxxxxx
http://vilerichard.com

Free web stats and counters:  http://www.wundercounter.com