|go ahead... be a heretic|
AoH refs for setting HTML::Template loopsby bradcathey (Prior)
|on May 08, 2004 at 14:15 UTC||Need Help??|
bradcathey has asked for the wisdom of the Perl Monks concerning the following question:
I'm still trying to get my head around references and was doing okay until this bit of code where I must set an HTML::Template loop with a AoH. I'm fine when I fetchall_arrayref() and set the param with the AoH reference directly:
But when I try to build a new AoH for the purposes of the application's functionality and set that ref, I get an error of trying to set the "param with a scalar." I tried this:
after the for loops and my @selbranch; before the loops and got strict errors for both. So, question: how do I make my $selbranch an acceptable reference for H::T? Background questions: when does $selbranch become an array? a reference? Here's the whole deal:
"A little yeast leavens the whole dough."