in reply to Re: Re: Undeclared CGI???
in thread Undeclared CGI???

To get the CGI Vars method, you must import the :cgi-lib functions. Add it to your 'use CGI' line. Read all about it here: perldoc CGI

use CGI qw(:standard :cgi-lib);

YuckUse

Replies are listed 'Best First'.
Re: Re: Re: Re: Undeclared CGI???
by Nickd_69 (Novice) on Aug 14, 2003 at 02:14 UTC
    Tried what you said but still getting the same error Undefined subroutine CGI::Vars. I am not trying to debug the script usng perl on my computer but running the script on my web server which then brings the errors up. Undeclared to me sounds like the code is wrong. Any other ideas. Shouldn't that CGI module which is a pretty common one be working on my web server? Any other ideas anyone? Going through my code line by line is pointless cause as soon as I get down a few lines the same thing happens.