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

Re: [cobalt-users] cgi-wrap?



#!/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.

_________________________________
daniel a. g. quinn
starving programmer

most of us go to our grave with our music still inside of us
 - unknown



----- Original Message -----
From: "Dan Kriwitsky" <list1@xxxxxxxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Monday, April 22, 2002 1:56 PM
Subject: RE: [cobalt-users] cgi-wrap?


> > i'm new to the whole cobalt thing, as i'm more of a redhat
> > geek, so i'm unfamilliar with this whole cgi-wrapper thing.
> > what is it?
>
> http://www.google.com/search?sourceid=navclient&querytime=YT-E&q=cgi%2Dw
> rap
>
> >  do they have a private error log
> > that i can access? or am i stuck guessing at what's going wrong?
> >
> >
> Without the exact error message and possibly the URL of a .txt version
> of the script, so is anyone else.
> --
> Dan Kriwitsky
> 
>
>
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>