Hello,

It appears that TT is converting an "undef" value that I return from a 
function called from a template into the empty string, e.g.:

--------
USE Myplugin;
SET foo = Myplugin.myfunc() %]
--------
sub myfunc { return undef; }
--------

...at least, foo.defined() is evaluating as true in this instance.

Is this intended behavior? I need to be able to return a literal undef...

-F

-- 
Felipe Gasper
Linux/BSD development

cPanel of Texas, LLC
3701 Kirby Dr., suite 428
Houston, TX 77098
office 713-529-0800 x4096
cell 832-633-8092
fax 713-559-3206

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to