Help for this page

Select Code to Download


  1. or download this
    {
        package Foo;
    ...
        # autoloads foo()
        # autoloads bar()
    }
    
  2. or download this
        my $code = $obj->can('foo');
        $obj->$code(...)
    
  3. or download this
        $obj->foo(...)
    
  4. or download this
        AUTOLOAD {
            ...;
    ...
                croak("No method $method ...");
            }
        }
    
  5. or download this
        AUTOLOAD {
            ...;
    ...
                croak("No method $method ...");
            }
        }
    
  6. or download this
        AUTOLOAD {
            my $self = $_[0]; # Not shift, using goto.
    ...
                croak(...);
            }
        }
    
  7. or download this
        sub can {
            my ($self, $method) = @_; # Not shift, using goto.
    ...
    
            return $universal; # May be undefined.
        }
    
  8. or download this
        use Class::AUTOCAN sub {
            my $self = shift;
    ...
    
            return;
        };
    
  9. or download this
        Class::AUTOCAN->install(
            target => $pkg,
            code => sub { ... },
        );