Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

RE: Number of times I've used goto in Perl

by dlc (Acolyte)
on Apr 19, 2000 at 21:02 UTC ( [id://8057]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://8057]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-19 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found