Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by mothra (Hermit)
on Jun 12, 2002 at 14:08 UTC ( #173830=note: print w/replies, xml ) Need Help??


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

Either:

map{print"$_ is married to $couples{$_}".chr 10}sort keys%couples}

or:

map{print"$_ is married to $couples{$_}<br>"}sort keys%couples}

The latter, of course, only newlines in HTML.

Update: print"$_ is married to $couples{$_}<br>"for sort keys%couples :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2022-05-24 19:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?