On 20/08/2002 17:23:11 perl-win32-users-admin wrote:

>Cleaning up some inherited code and I ran into this:
>
>if ( ! $m_rkCfgTable->{Trace} eq "true") {
>$m_nTraceLevelMin = -1;
>return 0;
>}
>
>For the life of me, I cannot fathom why this is *not* identical?
>
>unless ($m_rkCfgTable->{Trace} eq "true") {
>$m_nTraceLevelMin = -1;
>return 0;
>}
>
>What am I missing?
>

eq has a very low precedence. The ! applies to $m_rkCfgTable->{Trace},
not the result of eq. !"false" is 0 (same as !"true", of course),
which is never eq "true".

--
If it ain't broke, don't break it.

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to