in reply to Re: Re: Re: Re: (Golf) Warningless Comparison
in thread (Golf) Warningless Comparison

NOTE: NO WARNINGS from my original entry.

Nope. Did you look at what was on line 22?

Use of uninitialized value in string ne at C:\test\201598.pl line 22. BrowserUK golf: aa cc dd ff hh jj kk ll mm
I hade to comment out your implementation of tadman's solution because if wouldn't compile.

Weird, it compiles here. Are you sure it didnt get screwed on download or something?

Your signal handler converts a SIG_WARN into a SIG_INT (die) which kind of belies the reasons for Perl distinguishing between them.

This has nothing to do with why your code generates warnings when you think it shouldnt.

Let this whole thing be a lesson to you: -w and $^W should as the documentation says be avoided!

--- demerphq
my friends call me, usually because I'm late....