in reply to Is it possible to print out CGI fields using the qq operator?
How about:
(This prints:
<sometag>
<input type="text" name="cgifield" size="20" />
<sometag>
Admittedly, it is still a bit cumbersome...
chas
(I'm a little confused about why the /> instead of >. The code by the hok si la also produces the same thing...) (Updated to fix typos, errors and formatting.)
use CGI qq(:standard); print qq{ <sometag> @{[textfield(-name=>'cgifield',-size=>'20')]} <sometag> };
(This prints:
<sometag>
<input type="text" name="cgifield" size="20" />
<sometag>
Admittedly, it is still a bit cumbersome...
chas
(I'm a little confused about why the /> instead of >. The code by the hok si la also produces the same thing...) (Updated to fix typos, errors and formatting.)
In Section
Seekers of Perl Wisdom