The following program demonstrates that unless a scalar is set to a value it is initially undefined:
This program returns the message that $sum is undefined.use strict; my $sum; unless (defined($sum)) { print '$sum is undefined', "\n"; } else { print 'The value of $sum is ', "$sum\n"; }
In reply to Re: (jcwren) Re: Still confused
by sierrathedog04
in thread Still confused
by yabba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |