in reply to To warn or not to warn, that is the question

On the zero/undef/non-zero'edness of something, this is low overhead.

#!/usr/local/bin/perl -w use strict; { if (my $x = (maybe_undef_maybe_not () || 0)) { print "Not Zero\n"; } else { print "Zero\n"; } } sub maybe_undef_maybe_not { return undef; }
--Chris

e-mail jcwren