Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

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

by dlc (Acolyte)
on Apr 19, 2000 at 21:02 UTC ( #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
Node Status?
node history
Node Type: note [id://8057]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2014-10-24 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls