In article <[EMAIL PROTECTED]>,
Bart Lateur <[EMAIL PROTECTED]> wrote:
>I often use tri-state flags, with possible value true (1), false (0), or
>undetermined (undef).
>
>The question is: how do you test for one of the flags, in particular for
>0, without warnings?

Here's one way :)

use Data::Dumper;
$Data::Dumper::Terse = 1;
if (Dumper($flag) eq '0') ...

Reply via email to