in reply to Re: Uninitialized value
in thread Uninitialized value
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);
HTH,
Charles K. Clarkson
--
Head Bottle Washer,
Clarkson Energy Homes, Inc.
In Section
Seekers of Perl Wisdom