Your missing somthing. Test it.
returns 1, no warnings.my $junk; print 1 + ($junk || 0);
returns 12, no warnings.my $junk = 11; print 1 + ($junk || 0);
returns 16, no warnings, not 1 as ravendarke wanted.my $junk = 0; print 1 + ($junk || 15);
In reply to Re: Re: Uninitialized value
by CharlesClarkson
in thread Uninitialized value
by ravendarke
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |