?

Log in

A blast from the past - It's hardly Candace Bushnell is it? [entries|archive|friends|userinfo]
sarah_mum

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

A blast from the past [Dec. 24th, 2009|07:46 am]
sarah_mum
While $Date = Dec24

MakeList

ChkList
ChkList

If $name=naughty
Then Stocking = 0

If $name=nice
Then Stocking = Full

Santa|Town
linkReply

Comments:
[User Picture]From: whotheheckami
2009-12-24 10:21 am (UTC)
Brilliant! :@)
(Reply) (Thread)
[User Picture]From: vin_petrol
2009-12-24 11:07 am (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) (Thread)
[User Picture]From: sarah_mum
2009-12-24 12:05 pm (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) (Parent) (Thread)
From: (Anonymous)
2009-12-24 01:46 pm (UTC)
辞めないほうがいい?
(Reply) (Thread)