Perl Programming/Keywords/AUTOLOAD

Previous: atan2 Keywords Next: BEGIN

The AUTOLOAD keyword

AUTOLOAD is a keyword that is used to mark a subroutine for autoloading. This subroutine is called, if a subroutine that doesn't exist was called with exactly the same number of arguments.

Syntax

  sub AUTOLOAD BLOCK

Examples

sub AUTOLOAD {
  my $callit = $AUTOLOAD;
  []
  system($callit, @_);
}
Category:Book:Perl Programming#Keywords/AUTOLOAD%20
Previous: atan2 Keywords Next: BEGIN
Category:Book:Perl Programming#Keywords/AUTOLOAD%20
Category:Book:Perl Programming