Hello,

I'm having difficulty working out how to put an undef into
a hash.  I expected the following to work, leaving the undef
value for the key "blah".

$ cat test.tt2
[%  USE Dumper;
    hash = {};
    hash.blah = something_not_defined;
    Dumper.dump(hash);
%]

$ tpage test.tt2
$VAR1 = {
          'blah' => ''
        };

I tried a few other versions without success.  I think my expectations
of undef handling are way off.

Thanks,

Brad

PS. TT2 version 2.14
--
  Tether even a roasted chicken.                         -- Hagakure

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

Reply via email to