in reply to Any one know how to use sigtrap with moose?

How does Perl (or Moose) know what to pass in for $self to your sigtrap_handler_kill?

Update: Also think about on which object(s) to set the new status.

If you have a callback that you want to use to call a method on a specific object, use a closure:

sub { $obj->status("foo"); };

Replies are listed 'Best First'.
Re^2: Any one know how to use sigtrap with moose?
by Anonymous Monk on Jul 24, 2012 at 10:38 UTC
    Should this code put in sigtrap_handler_kill or in the test script?