Try::Tiny::Tiny - slim Try::Tiny down as far as reasonably possible
version 0.001
export PERL5OPT=-MTry::Tiny::Tiny
The reason this module exists is that Try::Tiny will try naming the blocks it is passed, if it can load a module for doing so. This takes meaningful time, is only useful in stack traces, and then may defeat code that tries to examine the stack to print a more helpful error message.
Now, you yourself can avoid using Try::Tiny in the first place, but you will almost inevitably still pull it in through your dependency chain, and it is not likely to be feasible to scrub it out.
This module helps sanitise your dependency chain a bit without patching all of it by loading Try::Tiny in such a way that it is forced to skip naming its callbacks. In order to be useful, you must use this module before using any other module that loads Try::Tiny. In practice that means you probably want to load it as early as possible, such as through PERL5OPT.
This module will fail to load if you load it too late to take effect.
Try::Catch – a stripped-down clone of Try::Tiny
Aristotle Pagaltzis <pagaltzis@gmx.de>
This software is copyright (c) 2017 by Aristotle Pagaltzis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Try::Tiny::Tiny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Try::Tiny::Tiny
CPAN shell
perl -MCPAN -e shell install Try::Tiny::Tiny
For more information on module installation, please visit the detailed CPAN module installation guide.