A blast from the past

Dec 24, 2009 07:46

While $Date = Dec24

MakeList

ChkList
ChkList

If $name=naughty
Then Stocking = 0

If $name=nice
Then Stocking = Full

Santa|Town

Leave a comment

Comments 4

whotheheckami December 24 2009, 10:21:51 UTC
Brilliant! :@)

Reply


vin_petrol December 24 2009, 11:07:50 UTC
Actually, there's an obvious bug in that program:

While $Date = Dec24

will assign Dec24 to $Date and return true, rather than test for equivalence. It should be:

While $Date == Dec24

Or Santa will be stuck in that loop for every day of the year.

[Sorry, couldn't resist! :-) Been a Perl hacker way too long...]

Reply

sarah_mum December 24 2009, 12:05:22 UTC
Coincidentally, the source of that code was the daily pop-up message you got when logging on to the CompSci net at York.
I had to explain it to my classmate (Danny Suave, Yugoslav - I wonder where he is now), not because he didn't get the 'code' but because he'd never heard the song!

Reply


anonymous December 24 2009, 13:46:50 UTC
辞めないほうがいい?

Reply


Leave a comment

Up