UNIVERSAL::canAUTOLOAD - installs a UNIVERSAL::can that respects AUTOLOAD subs
use UNIVERSAL::canAUTOLOAD; package MyModule; sub DESTROY {} sub AUTOLOAD { our $AUTOLOAD; print "in AUTOLOAD for $AUTOLOAD\n"; } my $object = bless {}, 'MyModule'; my $method = $object->can( 'potato' ); # returns a true value $object->$method(); # call the AUTOLOADed potato method
This module has external dependencies on the following modules:
Class::ISA Test::More
perl Build.PL perl Build test
and if all goes well
perl Build install
What changed over the last 3 revisions
Initial release =back
Richard Clamp <richardc@unixbeard.net> original need and anticipated documentation from Mark Fowler.
Copyright (C) 2003 Richard Clamp. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
"can" in UNIVERSAL
1 POD Error
The following errors were encountered while parsing the POD:
You forgot a '=back' before '=head1'
To install UNIVERSAL::canAUTOLOAD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UNIVERSAL::canAUTOLOAD
CPAN shell
perl -MCPAN -e shell install UNIVERSAL::canAUTOLOAD
For more information on module installation, please visit the detailed CPAN module installation guide.