Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

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

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


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 UNIVERSAL/can 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

UNIVERSAL/can

Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy