Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Dispatch Table and Data::Dumper

by ghenry (Vicar)
on Oct 19, 2005 at 13:23 UTC ( #501295=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    
    if ( $action_ref->{$choice} ) { $action_ref->{$choice}->(); }
    else { warn "Unknown option: '$choice';\n" }
    
  2. or download this
    $VAR1 = {
              'HTML' => sub { "DUMMY" },
    ...
              'Console' => sub { "DUMMY" },
              'PDF' => sub { "DUMMY" }
            };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://501295]
Approved by Corion
Front-paged by Tanktalus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2020-12-01 00:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?