Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Automating dispatch tables

by davido (Cardinal)
on Apr 16, 2004 at 07:58 UTC ( [id://345673]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub foo {}
    sub bar {}
    ...
    if ( my $ref = main->can($method) ) {
        $ref->();
    }
    
  2. or download this
    {
        sub foo{}
    ...
                     bar => \&bar,
                     baz => \&baz,
                     qux => \&qux );
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found