Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 taking refuge in the Monastery: (2)
As of 2024-09-10 16:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (6 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.