in reply to Re: Trying to pass a hash ref to a module
in thread Trying to pass a hash ref to a module
davido, thanks for the lead I miss not be getting the hash right. How does one have a hash with lots of values that have the same key, other than using an Array of Hashes?
Anyway, I tried this--no error, but nothing got populated on the form.
my $q = new CGI; my @info = { 'address' => '123 Main', 'choices' => '2' }; my $template = HTML::Template->new( filename => "../form.tmpl"); my $html = $template->output; my $form = new HTML::FillInForm; my $page = $form->fill(scalarref => \$html, fdat => \@info); print "Content-type: text/html\n\n"; print $page;
Ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Trying to pass a hash ref to a module
by djohnston (Monk) on May 18, 2005 at 07:45 UTC | |
by bradcathey (Prior) on May 18, 2005 at 11:16 UTC |