Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Creating dispatch table with variable in function name

by nysus (Parson)
on Nov 21, 2017 at 19:22 UTC ( #1203938=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %dispatch = map { $_, \&{$_} } qw(first last user_id email create_p
    +assword);
    
  2. or download this
    my %dispatch = map { $_, \&{'_create_' . $_} } qw(first last user_id e
    +mail create_password);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2022-08-15 03:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?