in reply to HTTP Unblessed reference question

...and lacking 'use strict', but...

This isn't to directly address your question, BUT there is no excuse for not using strict (at least not in your code example). It didn't bite you here but believe me I've had even the smallest little scripts blow up because of something simple that "use strict" would have caught. Don't let your friends program without "use strict;"

Cheers,
-Dogma