in reply to Using hash values as CGI query types
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)) ] );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using hash values as CGI query types
by shenme (Priest) on Jan 28, 2005 at 12:16 UTC | |
by davis (Vicar) on Jan 28, 2005 at 12:19 UTC |