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

perl puzzle - cartoon couple registry (beginner, semi-golf)

by boo_radley (Parson)
on Jun 11, 2002 at 18:36 UTC ( #173613=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    %couples = (
        Fred=>"Wilma",
    ...
        Homer=>"Marge",
        Peter=>"Lois"
    );
    
  2. or download this
    #! perl -l
    %couples = (
        Fred=>"Wilma",
    ...
        Peter=>"Lois"
    );
    print foreach sort map {"$_ is married to $couples{$_}"} keys %couples
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://173613]
Approved by Corion
Front-paged by cjf
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2023-03-24 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?