Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Is it possible to print out CGI fields using the qq operator?

by kutsu (Priest)
on Feb 22, 2005 at 22:35 UTC ( #433514=note: print w/replies, xml ) Need Help??


in reply to Is it possible to print out CGI fields using the qq operator?

As far as I know you cannot, as tye put it on the chatterbox:

data structure dereferencing is interpretted inside of double quotes, but method calls and code dereferencing aren't

This is more easily seen if you use the OO form of CGI.pm:

use CGI; $cgi = CGI->new; print "$cgi->textfield(-name=>'cgifield',-size=>'20')"; print qq/$cgi->textfield(-name=>'cgifield',-size=>'20')/; print <<EOL; $cgi->textfield(-name=>'cgifield',-size=>'20') EOL #all print CGI=HASH(0x...)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://433514]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2021-11-28 06:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?