Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: multiple keys - one value

by sandfly (Beadle)
on Sep 11, 2003 at 22:14 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://290854]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-23 12:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found