Attribute::Abstract - An Abstract attribute
use Attribute::Abstract; package MyObj; sub new { ... } sub somesub: Abstract; package MyObj::Better; use base 'MyObj'; sub somesub { return "I'm implemented!" }
This attribute declares a subroutine to be abstract using this attribute causes a call to it to die with a suitable exception. Subclasses are expected to implement the abstract method.
Using the attribute makes it visually distinctive that a method is abstract, as opposed to declaring it without any attribute or method body, or providing a method body that might make it look as though it was implemented after all.
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.