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

Re^7: Creating dispatch table with variable in function name

by AnomalousMonk (Archbishop)
on Nov 23, 2017 at 03:52 UTC ( #1204103=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    c:\@Work\Perl\monks>perl -MData::Dump -le
    "use warnings;
    ...
     $disp{bar}(99, 88);
    "
    dispatch via unknown agent '_x_BAM' at -e line 1.
    
  2. or download this
    c:\@Work\Perl\monks>perl -MData::Dump -le
    "use warnings;
    ...
     Dispatch::me('bar', 99, 88);
    "
    dispatch via unknown agent '_x_BAM' at -e line 1.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2023-12-02 02:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (13 votes). Check out past polls.

    Notices?