Thanks Andy, I've read it before asking, the example just confuse me due to I'm not familiar with hash ref and it mixed up both hash ref and arguments.
There should be provided another basic example like [% myjoin(joint => "*", num1 => "10", num2 => "20" %]. Anyway, after knowing about hash ref I can understand how the example works. Chakkit -----Original Message----- From: Andy Wardley [mailto:[EMAIL PROTECTED] Sent: Monday, November 03, 2008 2:23 PM To: Robin Smidsrød Cc: [email protected]; Chakkit Ngamsom Subject: Re: [Templates] Passing hashes to Perl Robin Smidsrød wrote: > These two documents might help you to better understand references. And this one has all the details of how parameters get passed to your Perl subroutines: http://tt2.org/docs/manual/Variables.html#section_Passing_Parameters_and_Returning_Values HTH A _______________________________________________ templates mailing list [email protected] http://mail.template-toolkit.org/mailman/listinfo/templates
