Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

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

by mothra (Hermit)
on Jun 12, 2002 at 14:08 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 11:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found