Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 ( [id://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?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-24 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found