On Thu, Dec 10, 2009 at 5:33 AM, <[email protected]> wrote:
> 6 Sorted array of 1 MyObj item : MyObj=HASH(0x1c57c2c) -> foo =
> name =
>
I think that's the issue where a single object (as a hash ref) ends up
looking like a list of keys and values when used as a list. I see that I
often do this:
FOR i = as_list( field.options );
Where field.options returns a list of objects and as_list is:
$stash{as_list} = sub { return ref( $_[0] ) eq 'ARRAY' ? shift : [shift]
};
Not 100% sure if that's your situation -- just passing by on my way to
coffee and noticed your message.
--
Bill Moseley
[email protected]
_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates