If you ever see code that says something like $debug == TRUE, then you need to change that code. Why not write it as: if( TRUE == ( $debug == TRUE ) ) { or if( ( ( $debug == TRUE ) == TRUE ) == TRUE ) { To test for truth, you write: if( $debug ) { Most languages create problems for this since there are a ton of "true" values that aren't all == nor eq. But it is even more true in Perl since Perl has multiple "false" values that aren't all eq and that can generate warnings if you use ==.
- tye (but my friends call me "Tye")In reply to (tye)Re: Flip Flop IV
by tye
in thread Flip Flop IV
by PetaMem
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |