Re: Dumping vars from CGI with Data::Dumper
[email protected] ("Brian J. Miller") Thu, 31 Dec 2009 07:36:19 -0500
| Newsgroups | perl.beginners.cgi |
|---|---|
| Organization | End Point Corp. |
| Message-ID | <[email protected]> |
[email protected] wrote: > I am trying to read the values of all the parameters received in a CGI. > > But even using a Data::Dumper::Simple module, only the names of the > params are displayed, not the name/value relation of each one. > > use Data::Dumper::Simple; > use CGI; > print Dumper(\@param); > > any idea what I am doing wrong? I tryied with Data::Dumper::Names and > same result. > > Where is @param defined? Is this a snippet or the whole thing? Do you have strict and warnings turned on? my @param = CGI->new->param; > at the last post, it is > > print Dumper(param); > > (without the @) > > > Did you switch your 'use' statement to import 'param'? See "USING THE FUNCTION-ORIENTED INTERFACE" section of the documentation. -- Brian J. Miller End Point Corp. http://www.endpoint.com/ [email protected]