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

Tried what you said but giving this error now: Undefined subroutine CGI::Vars. Any more Ideas? Thanks for your help guys.

Replies are listed 'Best First'.
Re: Re: Re: Undeclared CGI???
by gellyfish (Monsignor) on Aug 13, 2003 at 08:55 UTC

    The Vars() method was added in version 2.50 of CGI.pm - which is older than the version in perl 5.00503 core (2.56) so you have either got an older version of perl than the one you think you have or you are picking up the CGI module from elsewhere.

    /J\
    
Re: Re: Re: Undeclared CGI???
by mildside (Friar) on Aug 13, 2003 at 05:01 UTC
    Sounds like an incomplete or incorrect installation of the CGI module perhaps?

    Cheers!

Re: Re: Re: Undeclared CGI???
by YuckFoo (Abbot) on Aug 13, 2003 at 21:03 UTC
    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

      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.