
mhx
Enthusiast
/ Moderator
Feb 19, 2002, 9:22 AM
Post #2 of 9
(67113 views)
|
- Who can write a YAPH*, with the least code FYI, it's normally called a JAPH. Here's my entry. Besides being a bit unreadable (as I hope), it has a nice little delay effect (at least on my HPUX machine) as if you were connected to the shell via a 300 baud modem. Also, it's golf score cannot be beaten: Once it has been run, it ends up as an empty text document which has obviously a golf score of zero.
$/=$*,$|=$=,@ARGV=$0,($_=chop($*=<>))=~m&#&&&{$*=$,},truncate$0,length $*;$*||exit,y)J-y)G-v),print,exec'perl',,,$0#,uhnfdk ouhS uhkwrqd wvxM Much fun, -- mhx
At last with an effort he spoke, and wondered to hear his own words, as if some other will was using his small voice. "I will take the Ring," he said, "though I do not know the way."-- Frodo
|