develooper Front page | perl.beginners | Postings from January 2002

Re: What's wrong with this?

From:
Jan Gruber
Date:
January 31, 2002 03:13
Subject:
Re: What's wrong with this?
Message ID:
200201311110.g0VBAkD09755@pollux.intern.primacom.net
Hi !

Sorry for the previous posting, im not yet completely awake ;o) 

> > >How can the param's be placed into a new hash?
> >
> > CGI.pm has a Vars() method, I believe, which returns a hash.
> >
> >   use CGI;
> >   my $q = CGI->new;
> >   $data = $q->Vars;
> >
> >   print $data->{field};  # etc.

Just a little add on:

I had to use  CGI ':cgi-lib'; to get the $q->Vars function working.
I think %data = $q->vars would be better to read and I'm not sure if the 
Vars() function returns a reference or a hash.

Best regards,
-- 
Jan Gruber              Primacom AG
Central Systems

cat /dev/world | perl -e "while (<>) {(/(^.*? \?) 42 \!/) && (print $1)}"
errors->(c)
_ 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About