in reply to Re^3: Any one know how to use sigtrap with moose?
in thread Any one know how to use sigtrap with moose?

This approach will also keep $newest_instance around until the end of the program, which may or may not be what the OP intended.

Replies are listed 'Best First'.
Re^5: Any one know how to use sigtrap with moose?
by tobyink (Canon) on Jul 24, 2012 at 13:49 UTC

    Indeed, but there's always Scalar::Util::weaken for that.

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