Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Template::Toolkit - catching errors when plugin is missing?

by DrHyde (Prior)
on Jul 04, 2014 at 12:17 UTC ( [id://1092293]=note: print w/replies, xml ) Need Help??


in reply to Template::Toolkit - catching errors when plugin is missing?

TT has TRY and CATCH keywords. Perhaps they'll help.

Replies are listed 'Best First'.
Re^2: Template::Toolkit - catching errors when plugin is missing?
by Skeeve (Parson) on Jul 04, 2014 at 12:25 UTC

    Indeed they did!

    <!--[% TRY; USE Stash; USE Dumper Indent = 1; Dumper.dump( Stash.stash() ) | replace('-(?=-)', '- '); CATCH %] No dump without stash ERROR! Type: [% error.type %] Info: [% error.info %] [% END %]-->

    That's my new DUMP.tt


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-19 03:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found