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"); };
In reply to Re: Any one know how to use sigtrap with moose?
by Corion
in thread Any one know how to use sigtrap with moose?
by hisycg@gmail.com
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |