>>>>> ""John" == "John W Krahn" <[EMAIL PROTECTED]> writes:

"John> Wouldn't

"John>          $variable = !!$variable;

"John> work just as well?

No.  There's no promise that the output of ! is "0" and "1".  In fact,
it's "" and "1".  And that's exactly what I was trying to avoid.

Don't confuse C idioms with Perl things.

-- 
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