You might also want to check out something like HTML::Template or Template::Toolkit#!/usr/bin/perl use warnings; use strict; use CGI qw(:standard); my $foo = "bar"; my $bar = "baz"; #i've passed Tr an _array reference_ print Tr([td($foo), td($bar)]), "\n";
Should do what you want (untested). However, writing this makes me think that there's a Better Way of doing what you're trying to do.print Tr( [ td($req.$key), td(input(-type=>$input_html{$key}, -name=>$key)) ] );
In reply to Re: Using hash values as CGI query types
by davis
in thread Using hash values as CGI query types
by Nevtlathiel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |