?

Log in

No account? Create an account
Ramblings Journals I Read Calendar The Dirt MegaZone's Waste of Time Older Older Newer Newer
What language are you? - MegaZone's Safety Valve
The Ramblings of a Damaged Mind
zonereyrie
zonereyrie
What language are you?
You are... Perl!#!/usr/bin/perl -iake_one_down_pass_it_around:_bottles_of_beer:_on_the_wall:99
for(($t,$a,$b,$i)=split/:/,$^I;$i;print){$_="-$i$a$b,-$i$a,-T$t,-".--$i."$a$b
";s/(-1_.*?e)s/$1/g;y/_-/ \n/}#

What programming language are you?

I am: amused
Current Media: TiVo: Deep Sea Detectives

4 STDOUT || STDIN
Comments
From: sulicious Date: April 28th, 2004 02:30 pm (UTC) (Direct Link)
wow.
that must be the geekiness quiz thing i've ever seen...
From: ninjarat Date: April 28th, 2004 02:37 pm (UTC) (Direct Link)
...

Fortran

\/\/hatever.
From: cedarmulberry Date: April 29th, 2004 01:07 pm (UTC) (Direct Link)
You are... C++!
#include 
[Error: Irreparable invalid markup ('<fstream.h>') in entry. Owner must fix manually. Raw contents below.]

<font size="+2">You are... C++!</font><br><font size="-2"><pre>
#include <fstream.h>

enum Bottle { BeerBottle };

class Shelf {
unsigned BottlesLeft;
public:
Shelf( unsigned bottlesbought )
: BottlesLeft( bottlesbought )
{}
void TakeOneDown()
{
if (!BottlesLeft)
throw BeerBottle;
BottlesLeft--;
}
operator int () { return BottlesLeft; }
};

int main( int, char ** )
{
Shelf Beer(99);
try {
for (;;) {
char *plural = (int)Beer !=1 ? "s" : "";
cout << (int)Beer << " bottle" << plural
<< " of beer on the wall," << endl;
cout << (int)Beer << " bottle" << plural
<< " of beer," << endl;
Beer.TakeOneDown();
cout << "Take one down, pass it around," << endl;
plural = (int)Beer !=1 ? "s":"";
cout << (int)Beer << " bottle" << plural
<< " of beer on the wall." << endl;
}
}
catch ( Bottle ) {
cout << "Go to the store and buy some more," << endl;
cout << "99 bottles of beer on the wall." << endl;
}
return 0;
}
</pre></font><br><a href="http://www.cs.berkeley.edu/~krc/pltest/pl.html" target="_new">What programming language are you?</a>
From: cedarmulberry Date: April 29th, 2004 01:09 pm (UTC) (Direct Link)
Heh. Classic that the C++ one generates an "irreperable invalid markup" error on the #include.
4 STDOUT || STDIN