Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 lurking in the Monastery: (14)
As of 2014-09-30 16:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (378 votes), past polls