The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FP::Repl::AutoTrap -- use FP::Repl::Trap on tty, Chj::Backtrace otherwise

SYNOPSIS

  use FP::Repl::AutoTrap;

DESCRIPTION

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.

SEE ALSO

FP::Repl::Trap, Chj::Backtrace

NOTE

This is alpha software! Read the status section in the package README or on the website.