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 Aristotle (Chancellor)
on Jun 13, 2002 at 02:46 UTC ( #174096=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #        1         2         3         4         5         6
    #234567890123456789012345678901234567890123456789012345678901234
    {(@c=each%couples)&&printf("%s is married to %s%c",@c,10)&&redo}
    
  2. or download this
    # Update: trickier, same char. count
    {(@c=each%couples)?printf("%s is married to %s%c",@c,10)&redo:1}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2023-03-24 02:18 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?