Attribute::SigHandler - A Signal Handler Attribute
use Attribute::SigHandler; sub myalrm : SigHandler(ALRM, VTALRM) { ... } sub mywarn : SigHandler(__WARN__) { ... }
When used on a subroutine, this attribute declares that subroutine to be a signal handler for the signal(s) given as options for this attribute. It thereby frees you from the implementation details of defining sig handlers and keeps the handler definitions where they belong, namely with the handler subroutine.
None known so far. If you find any bugs or oddities, please do inform the author.
Marcel Grunauer, <marcel@codewerk.com>
Dan Kogai, <dankogai+cpan at gmail.com>
<dankogai+cpan at gmail.com>
Copyright 2001 Marcel Grunauer. All rights reserved.
Copyright 2006 Dan Kogai. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl(1), Attribute::Handlers
To install Attribute::Util, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Attribute::Util
CPAN shell
perl -MCPAN -e shell install Attribute::Util
For more information on module installation, please visit the detailed CPAN module installation guide.