NAME

Top Close Open

Template::TT3::Type::Undef - specialist type for the undefined value

DESCRIPTION

Top Close Open

Template::TT3::Type::Undef is a specialised subclass of Template::TT3::Type used in conjunction with Template::TT3::Variable::Undef for representing the undefined value, undef.

It inherits everything from the Template::TT3::Type base class, including methods like defined() and undefined() which can be used as virtual methods to test if a value is defined or not.

[% if foo.defined %]
    ...
[% end %]

AUTHOR

Top Close Open

Andy Wardley <abw@wardley.org>

COPYRIGHT

Top Close Open

Copyright (C) 1996-2009 Andy Wardley. All Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


http://tt3.template-toolkit.org/docs/Template/TT3/Type/Undef.pm last modified 2009-11-23 15:09:25