>>>>> ""Mr" == "Mr Shawn H Corey" <[EMAIL PROTECTED]> writes:

"Mr> How about?

"Mr>   $variable = 1 - !$variable;

Same problem.  And you'll also get a warnings error.

There is *no promise* in the Perl docs that a boolean returns a specific value
for "true" or "false".  Any code that depends on such is broken, in my
opinion, taking advantage of a particular implementation of Perl, and not its
external specifications.

For grins, ! could return "4" and "0" in the next release for true
and false.  Or even "0 but true" for true.  And that'd certainly
mess up your routine here.  And that's my point.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <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!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to