Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by Pug (Monk)
on Jun 12, 2002 at 23:45 UTC ( #174066=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -l
    %couples = (
    ...
      Pter=>"Lous"
    );
    map print, map "$_ is married to $couples{$_}",sort keys%couples
    
  2. or download this
    %c=%couples,map print,map "$_ is married to $c{$_}",sort keys%c
    

Log In?
Username:
Password:

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

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






    Results (63 votes). Check out past polls.

    Notices?