Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: Undef value in Template Toolkit

by mikelieman (Friar)
on Aug 20, 2019 at 19:03 UTC ( [id://11104753]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Undef value in Template Toolkit
in thread Undef value in Template Toolkit

It's intentional, if now regretted.

From Template-Toolkit/source/lib/Template/Stash.pm

#--------------------------------------------------------------------- +--- # undefined($ident, $args) # # Method called when a get() returns an undefined value. Can be redef +ined # in a subclass to implement alternate handling. #--------------------------------------------------------------------- +--- sub undefined { my ($self, $ident, $args) = @_; if ($self->{ _STRICT }) { # Sorry, but we can't provide a sensible source file and line +without # re-designing the whole architecture of TT (see TT3) die Template::Exception->new( $UNDEF_TYPE, sprintf( $UNDEF_INFO, $self->_reconstruct_ident($ident) ) ) if $self->{ _STRICT }; } else { # There was a time when I thought this was a good idea. But it +'s not. return ''; } }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11104753]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-25 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found