Home  |  Linux  | Mysql  | PHP  | XML
From:Brian J. Miller Date:Thu Dec 31 07:36:19 2009
Subject:Re: Dumping vars from CGI with Data::Dumper
buzon@alejandro.ceballos.info 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/
brian@endpoint.com
Navigate in group perl.beginners.cgi at sever nntp.perl.org
Previous Next


Your recent visits
More compact way to write this
sybase-ct with PHP sending blank user name and password
Re: content type headers
Re: [PHP-DB] Storing Images #2
RE: [PHP-WIN] Building an extension on windows


  
© No Copyright
You are free to use Anything
Site Maintained by Zareef Ahmed
Powered By PHP Consultants