Dave,

I truly wish I could just post the code, because you'd be amazed at the
similarity between what you were kind enough to reply with and what I'm
staring at ;) But alas, I cannot. 

$foo is getting assigned to the template with:

my $vars = {
        foo => $foo ,
};
$template->process( 'template' , $vars );

I can dump the contents of $foo out in the template with a foreach. But
size is just ... not doing anything at all. This is truly irritating,
all the more so, because it's for something that's not worth the sort of
time I (and you!) have spent on it.

And here's the answer: unbeknownst to me, a fellow (I use the word
loosely!) developer pulled the code that was populating the key/value
that was a hash ref. The key was still there, just empty. I saw the hash
ref in the value and made what was apparently a very na�ve assumption.
Although this brings up the point, shouldn't that return 0 not undef?

In any case, problem more or less solved.

Thanks again,
mark




_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to