>>>>> "Matthias" == Matthias Dillier <[EMAIL PROTECTED]> writes:
Matthias> [%
Matthias> value1=1
Matthias> value2="xxx"
Matthias> test = mysubroutine(param1 => value1, param2 => value2)
Matthias> %]
This is untested, but named parameters are merely passed as a hashref
as the last element in the list. So, you should be able to simulate
that example with:
myhash = {};
myhash.value1 = 1;
myhash.value2 = "xxx";
test = mysubroutine(myhash);
with no difference perceptible to the subroutine. If I'm wrong,
someone will correct me. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates