writes:
> On Mon, 25 Apr 2011 13:46:24 -0700 (PDT), Dave <> wrote:
>>$template->param(TESTS => @loop_arr);
>>
> maybe => [@loop_arr]
>
> since => imply's a hash element, which can't be an array,
> but can be a reference to an array.
In which case you might want to use => \@loop_arr instead. Correct me if
I am wrong but you're now copying @loop_arr into an empty hash you
created a reference too. Sometimes that's what you want (for example if
you want to keep a copy), but in this case most likely not.
--
John Bokma j3b
Blog:
http://johnbokma.com/ Facebook:
http://www.facebook.com/j.j.j.bokma
Freelance Perl & Python Development:
http://castleamber.com/