On the zero/undef/non-zero'edness of something, this is low overhead.
--Chris#!/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; }
In reply to (jcwren) Re: To warn or not to warn, that is the question
by jcwren
in thread To warn or not to warn, that is the question
by Ovid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |