wombat has asked for the wisdom of the Perl Monks concerning the following question:

AUGH! Bretheren! You've got to help me! I started taking the midterm in my Perl class, and the questions seemed to be written in MISHMASH I snuck out the back door and pretended like I was going to the loo, but I've come here instead! Please answer all of the following questions for me... Uhh and from the 15 minutes I took looking at the test and panicking, I kinda need these in the next 35 minutes.

Oh no, they've started searching the stalls. They'll soon find me, and I doubt they'll give me extra credit for being able to connect to the site through my Palm pilot rigged to a cell phone. I'm going to go back to the room and spend the next 30 minutes trying to think of excuses, and then I'll projectile vomit towards the front and run out screaming. I'll re-establish the connection, copy the answers, and then turn my paper in in the hubbub and confusion. Since I've never been to the professor's office hours or discussion section, I don't think he knows my name, and thus won't be able to find my test amid the swarms of others. Okay.. .hurry now!

• 1: Write a subroutine that simulates all of the logical boolean operators up to 10 variables, (eg: abc'defg'h'ij, abc'defg'h'ij'...) The subroutine should take 11 arguments, (opcode and 10 variable inputs) But the inputs must rotate depending on the truth of the first input. eg (if a=0 then opcode,a,b,c,d,e,f,g,h,i,j) (if a=1 then opcode,j,i,h,g,f,e,d,c,b,a) 2 points will be taken off for every line over 10. (And you must format correctly, bonus points for clear,unobfuscated code.)
• 2: Write an automatic perl prose translator. Given a work of Shakespeare, what program would output a suitible Perl translation? Test your program on "Abraham: Do you bite your thumb sir? Sampson: I do bite my thumb, sir. Abraham: Do you bite your thumb at _US_ sir?"
• 3: If the Byzantine Empire had been given the opportunity to use Perl to manage its affairs, would it still have fallen at the hands of the invading Mongol hordes? Assume the Ottoman Empire was running BeOS.
• 4: Use PERL to solve the TOE (Theory of Everything) or the GUT (Grand Unification Theory)
• Extra credit: What was the summer job Larry Wall held between his 9th and 10th grade years in high-school?

~W

</satire>

Replies are listed 'Best First'.
by c-era (Curate) on Oct 23, 2000 at 23:35 UTC
1 - B
2 - A
3 - D
4 - C
EC - E

I hope that helps ;)
No - I think #4 was A, because C was not discovered until 1969 ;)

Seriously, I am starting to think we need a Humor section. wombat, you really crack me up.