Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Dispatch Table and Data::Dumper

by ghenry (Vicar)
on Oct 19, 2005 at 13:23 UTC ( [id://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
Domain Nodelet?
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?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-04-23 21:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found