Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 pondering the Monastery: (5)
As of 2023-03-26 21:31 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?