FP::Repl::AutoTrap -- use FP::Repl::Trap on tty, Chj::Backtrace otherwise
use FP::Repl::AutoTrap;
This checks whether stdin and stdout are going to a tty, if so, then activate FP::Repl::Trap to trap errors in a repl, otherwise just activate Chj::Backtrace.
This is activated at load time unless $ENV{RUN_TESTS} is true. It can be activated expicitly by calling FP::Repl::AutoTrap::possibly_activate.
$ENV{RUN_TESTS}
FP::Repl::AutoTrap::possibly_activate
FP::Repl::Trap, Chj::Backtrace
This is alpha software! Read the status section in the package README or on the website.
To install FunctionalPerl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FunctionalPerl
CPAN shell
perl -MCPAN -e shell install FunctionalPerl
For more information on module installation, please visit the detailed CPAN module installation guide.