in reply to Getting hash of CGI variables

address was just an example of a possible parameter a CGI script might be looking for. The CGI docs have two examples, the second one starting use CGI ':cgi-lib';. They're not meant to be used in the same script.

Try just:

my $params = $CGI->Vars; print Dump($params);

Replies are listed 'Best First'.
Re: Re: Getting hash of CGI variables
by Lori713 (Pilgrim) on Jan 22, 2004 at 20:43 UTC
    I didn't realize the POD was giving me two separate examples (could my newbieness be any more obvious.... <sigh>)...</sigh>

    Worked like a charm once I changed the "Dump" to "Dumper" (got an error message about "Dump" so I tried "Dumper" and it worked), but I now have a simple list of my parameters. Thanks!!

    Lori

      Yeah, sorry about that -- obviously my fingers were thinking about YAML, not Data::Dumper.