in reply to Flip Flop IV
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")
|
|---|