Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Util (Priest)
on Jun 12, 2002 at 20:19 UTC ( [id://173993]=note: print w/replies, xml ) Need Help??


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

My approch was similar.

Without using any slashes, backslashes, semi-colons, command line options, only two double quotes, and using 64 characters:

printf"$_ is married to $couples{$_}%c",10 for sort keys%couples
Changing the double-quotes into  qq{} makes it 67 characters.

Of course, mine fails if anyone has a % in their name. In real Golf, it is the sort of thing they would update the test script to catch.

The most evil newline variant I considered was:

$:=~m{.(.)}s and print "something$1"

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-19 07:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found