in reply to Re: Can't seem to use an AoH with Template::Toolkit
in thread Can't seem to use an AoH with Template::Toolkit

When you call $cgi->Vars, you don't get a normal hashref.
yes, in scalar context. in list context, you get a 'normal' hash.
my %vars = $cgi->Vars;

Replies are listed 'Best First'.
Re^3: Can't seem to use an AoH with Template::Toolkit
by perrin (Chancellor) on Jan 29, 2007 at 14:03 UTC
    You mean array context list context, but yes, that does give you a list that you can make into your own normal hash. Here's the sub definition:
    sub Vars { my $q = shift; my %in; tie(%in,CGI,$q); return %in if wantarray; return \%in; }