in reply to Re^3: Problem installing Carp-1.25 under DWIM Perl
in thread Problem installing Carp-1.25 under DWIM Perl

Please remind me what's the added value of Carp::Always?
  • Comment on Re^4: Problem installing Carp-1.25 under DWIM Perl

Replies are listed 'Best First'.
Re^5: Problem installing Carp-1.25 under DWIM Perl
by tobyink (Canon) on May 21, 2012 at 15:40 UTC

    Carp::Always makes the Perl built-in die and warn functions work like Carp's confess and cluck functions.

    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'