UNIVERSAL-canAUTOLOAD README


UNIVERSAL-canAUTOLOAD documentation  | view source Contained in the UNIVERSAL-canAUTOLOAD distribution.

Index


NAME

Top

UNIVERSAL::canAUTOLOAD - installs a UNIVERSAL::can that respects AUTOLOAD subs

SYNOPSIS

Top

 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




DEPENDENCIES

Top

This module has external dependencies on the following modules:

 Class::ISA
 Test::More

INSTALLATION

Top

 perl Build.PL
 perl Build test

and if all goes well

 perl Build install

HISTORY

Top

What changed over the last 3 revisions

0.01 Monday 10th November, 2003
	Initial release
=back

AUTHOR

Top

Richard Clamp <richardc@unixbeard.net> original need and anticipated documentation from Mark Fowler.

COPYRIGHT

Top

SEE ALSO

Top

can in UNIVERSAL


UNIVERSAL-canAUTOLOAD documentation  | view source Contained in the UNIVERSAL-canAUTOLOAD distribution.