--- Stephen Howard <[EMAIL PROTECTED]> wrote:
> afaik, both lists and hashes are always arrayrefs
> and hashrefs. there
> are no 'flat' data structures other than scalars in
> TT. Given that, it
> would not make much sense as a default behavior to
> unref a hash to pass
> it to a function. since %$hash, iirc, makes a copy
> of the data
> structure, which could potentially be quite large.
What if I had an array of things [% Array = [ 'Green',
'Blue', 'Pink' ] %], and I wanted to pass them to a
function as arguments - akin to:
[% Object.UseColours( 'Green', 'Blue', 'Pink' ) %]
I can't do
[% Object.UseColours( Array ) %]
because then UseColours() will get only one argument -
a reference to an array.
I'm not terribly interested in performace - this isn't
for a webpage that's getting 50,000,000 hits a day ;-)
And these aren't going to be large data structures -
certainly less than the size of the scalars that are
going to hold return values of HTML...
--Peter
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates