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 };
}
|
---|
In Section
Past Polls