-
-
10 Nov 2003 21:50:35 UTC
- Distribution: UNIVERSAL-canAUTOLOAD
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues
- Testers (477 / 0 / 1)
- Kwalitee
Bus factor: 0- 94.59% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (2.65KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::ISA
- Test::More
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
UNIVERSAL::canAUTOLOAD - installs a UNIVERSAL::can that respects AUTOLOAD subs
SYNOPSIS
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
DESCRIPTION
Ever flying in the face of common sense, this module makes a special effort to make a section of "can" in UNIVERSAL false.
For discussion of this need, consult this thread:
http://london.pm.org/pipermail/london.pm/Week-of-Mon-20031020/022190.html
AUTHOR
Richard Clamp <richardc@unixbeard.net> original need and anticipated documentation from Mark Fowler.
COPYRIGHT
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.
SEE ALSO
Module Install Instructions
To install UNIVERSAL::canAUTOLOAD, copy and paste the appropriate command in to your terminal.
cpanm UNIVERSAL::canAUTOLOAD
perl -MCPAN -e shell install UNIVERSAL::canAUTOLOAD
For more information on module installation, please visit the detailed CPAN module installation guide.