Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: multiple keys - one value

by sandfly (Beadle)
on Sep 11, 2003 at 22:14 UTC ( #290854=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %h = (
        HELP => $_ = sub {print "help\n"},
        "?"  => $_,
        SAVE => sub {print "save\n"},
    );
    
  2. or download this
    my ($help, $save);
    my %h = (
    ...
        SAVE => $save = sub {print "save\n"},
        EXIT => $save,
    );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://290854]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2018-07-21 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (444 votes). Check out past polls.

    Notices?