You can write anything in Perl, apparently

All off topic conversation held here. Have fun and play nice. =)

Moderators: Bookworm, starkruzr, MrFireDragon, PrettyPrincess, Wapsi

Post Reply
User avatar
Fairportfan
Posts: 3283
Joined: Wed Aug 01, 2012 12:14 am
Location: Atlanta (well, Gainesville)
Contact:

You can write anything in Perl, apparently

Post by Fairportfan »

Code: Select all

my ($question, $to_be, $asleep); # version 0.1
 my $author = "Colin McMillen";
 my $apologies_to = "William Shakespeare";
 my $to_be = 1;

while ($to_be || (!$to_be)) {
 $question = "that";
 if (suffer($slings && $arrows_of_outrageous_fortune)
 or
 (take_arms_against($sea_of_troubles) && by_opposing() eq "end +them")) {
 do {
 $to_be = 0;
 $asleep = "no more";
 die "We end the heart-ache, and the thousand".
 " natural shocks that flesh is heir to";
 } while ("'tis a consumation devoutly to be wish'd.");
 }
 }
 sub suffer {
 return true;
 }
 sub take_arms_against {
 return true;
 }
 sub by_opposing {
 return "end them";
 }
From here.
Last edited by Fairportfan on Sun Mar 10, 2013 12:13 pm, edited 1 time in total.
Not even duct tape can fix stupid. But it can muffle the noise.
=====================
Peace through superior firepower - ain't nothin' more peaceful than a dead troublemaker.
=====================
mike weber
User avatar
Dave
Posts: 7586
Joined: Tue Jul 31, 2012 5:58 pm
Location: Mountain View, CA, USA

Re: You can write anything in C, apparently

Post by Dave »

'cept that isn't written in C at all. It's written in Perl, the "Swiss Army chainsaw" of scripting languages. If it can be programmed, it can probably be written in Perl... in at least 15 different coding styles and metaphors. Perl is nothing if not flexible.
User avatar
Fairportfan
Posts: 3283
Joined: Wed Aug 01, 2012 12:14 am
Location: Atlanta (well, Gainesville)
Contact:

Re: You can write anything in C, apparently

Post by Fairportfan »

Dave wrote:'cept that isn't written in C at all. It's written in Perl, the "Swiss Army chainsaw" of scripting languages. If it can be programmed, it can probably be written in Perl... in at least 15 different coding styles and metaphors. Perl is nothing if not flexible.
Arrrgh. And i even knew that! (I don't do C)
Not even duct tape can fix stupid. But it can muffle the noise.
=====================
Peace through superior firepower - ain't nothin' more peaceful than a dead troublemaker.
=====================
mike weber
Post Reply