Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by DrHyde (Prior)
on Jul 04, 2014 at 12:17 UTC ( #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 (Vicar) 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
Node Status?
node history
Node Type: note [id://1092293]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2019-10-17 02:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?