Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Passing a data structure via a dynamically-built subroutine call

by broquaint (Abbot)
on Jun 21, 2004 at 09:46 UTC ( #368398=note: print w/ replies, xml ) Need Help??


in reply to Re: Passing a data structure via a dynamically-built subroutine call
in thread Passing a data structure via a dynamically-built subroutine call

Here's a more slim-line version

sub call_service { croak "Couldn't find handler for $name" unless my $c = shift->can(shift); goto &$c; }
HTH

_________
broquaint


Comment on Re^2: Passing a data structure via a dynamically-built subroutine call
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2014-08-31 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls