Berg, Eric wrote:
If you allow you get_runner() method take arguments like this (hashref instead of hash-as-array-arguments)I'm traversing a hierarchy, and need to get one object from another from within a template. I'm having difficulty passing in parameters to my instance method from the template. Here's some code to explain:I have an array of "suites" from which I get an individual "suite": [% FOREACH suite = suites %] I need to get a "suite_runner" from the suite which I do in regular perl code like so: my $runner = $suite->get_runner(ENVIRONMENT => 'PROD'); I've tried to: [% runner = suite.get_runner(ENVIRONMENT => env) %] But I'm getting errors like: [Tue Jul 3 11:01:23 2007] regression_builder.cgi: Reference found where even-sized list expected at .../lib/site_perl//TestSuite.pm line 68.
$suite->get_runner({ENVIRONMENT => 'PROD' });
You should probably be out of problems.
-- Robin
begin:vcard fn;quoted-printable:Robin Smidsr=C3=B8d n;quoted-printable:Smidsr=C3=B8d;Robin org;quoted-printable:Smidsr=C3=B8d Consulting adr;quoted-printable:;;Vestre Ekeberg 32;Bark=C3=A5ker;Vestfold;3157;Norway email;internet:[EMAIL PROTECTED] title:IT-konsulent tel;work:+47 33019468 tel;home:+47 33019405 tel;cell:+47 91593393 x-mozilla-html:FALSE url:http://www.smidsrod.no version:2.1 end:vcard
smime.p7s
Description: S/MIME Cryptographic Signature
