in reply to uninitialized value in modulus (%)
I'd recommend adding a couple of sanity check statements right before your modulus test:
# what's in the %alphabet? foreach my $letter (keys %alphabet) { print "$letter\n$alphabet{$letter}\n"; } # what's $s? print "$s\n";<br> # does a key/value pair exist in %alphabet for $s? print "$alphabet{$s}\n";<br>
~CubicSpline
"No one tosses a Dwarf!"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: uninitialized value in modulus (%)
by alexiskb (Acolyte) on Aug 19, 2002 at 14:36 UTC |