http://www.perlmonks.org?node_id=8057


in reply to Number of times I've used goto in Perl

Goto is almost required when you use the AUTOLOADer, as such:

sub AUTOLOAD {
    no strict 'refs';
    $AUTOLOAD =~ s/.*:://;

    *{ $AUTOLOAD } = sub { return ${ $AUTOLOAD }; };

    goto &{ $AUTOLOAD };
}
  • Comment on RE: Number of times I've used goto in Perl