Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

99 bottles of beer

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34422
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got this link from someone I know: http://99-bottles-of-beer.net/

It's the program 99 bottles of beer on a wall written in different languages. Which language do you think has a cool implementation?

 
fred rosenberger
lowercase baba
Bartender
Posts: 12127
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perl, without a doubt:



and yes, it does work. I ran it myself.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:
and yes, it does work. I ran it myself.


 
fred rosenberger
lowercase baba
Bartender
Posts: 12127
30
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did a little research. The original author just wrote a normal perl script, then used a module that obfuscates in a special way to create the pictures.

The original perl was (I believe) this:


They site has a whitespace implementation as well, but I didn't think cutting-n-pasting it here would really do any good.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic