>>>>> "Ed" == Ed Mills <[EMAIL PROTECTED]> writes:

Ed> Is eq needed? Can't == be used for either context?
Ed>    $a == 'cat'

Ed> is readily distinguishable from

Ed>    $a == 2;

Ed> so the compiler should be able to determine context.

Yes, but what about:

        $a = '3.14'; # from reading a file
        $b = '3.1400'; # from user input

        if ($a == $b) { ... } # should this be string or number comparison?

Down that path likes awk, where we have to say stupid things like:

        if ("" $a == "" $b)

so that it's DEFINITELY a string comparison.

No, let's not set Perl back 13 years, thank you very much.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to