Undefined subroutine CGI::Vars

Discussion in 'Perl' started by Mark, Jul 26, 2004.

  1. Mark

    Mark Guest

    I want to store my request variables as a hash and have the code:

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

    use CGI::Carp qw(fatalsToBrowser);
    use strict;
    my $q = new CGI;
    my $params = $q->Vars;

    but the server is giving me an error message:

    "Undefined subroutine CGI::Vars"

    but I'm not sure why.

    Thanks
    Mark
     
    Mark, Jul 26, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon

    app vars and cache vars

    Jon, Dec 14, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    657
  2. Linuxguy123
    Replies:
    7
    Views:
    939
    Paddy O'Loughlin
    Feb 20, 2009
  3. caccolangrifata
    Replies:
    18
    Views:
    565
    Chris Torek
    Jul 22, 2011
  4. Replies:
    4
    Views:
    317
    Bob Walton
    Aug 12, 2003
  5. Torsten Mangner

    testing for 'undefined subroutine'

    Torsten Mangner, Nov 4, 2003, in forum: Perl Misc
    Replies:
    3
    Views:
    225
    Bob Walton
    Nov 5, 2003
  6. Moulin Kluge
    Replies:
    2
    Views:
    562
    pkent
    Jan 27, 2004
  7. Mark

    Undefined subroutine CGI::Vars

    Mark, Jul 26, 2004, in forum: Perl Misc
    Replies:
    16
    Views:
    544
  8. king
    Replies:
    5
    Views:
    348
Loading...