in reply to Re: Re: using modules
in thread using modules

I'm still not convinced that the use SUBS statement in db.cgi is doing anything useful. Try removing it and seeing if anything breaks.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you don't talk about Perl club."

Replies are listed 'Best First'.
Re: Re: Re: Re: using modules
by maderman (Beadle) on Nov 09, 2001 at 20:44 UTC
    I tried removing the use SUBS statement, but I received the following:
    BEGIN not safe after errors--compilation aborted at db.cgi line 1035.
    Line 1035 is: chdir("$file_dir");
    However, I also received error messages like:
    Global symbol "$var" requires explicit package name at db.cgi
    The "$vars" are those I have declared in @EXPORT and use var in SUBS.
    Stacy.