Jason,
I found it useful to create a simple subroutine reference and stick it
in the global variable stash:
If I were going to do that, I think I'd just make it a vmethod:
$Template::Stash::SCALAR_OPS->{'ref'} = sub { return ref($_[0]) };
[% GET v.size IF v.ref == 'ARRAY' %]
The advantage here would be that you don't have to remember to stick it in your
%vars every time.
-- Buddy
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates