Syntactic Confectionery Delight | |
PerlMonks |
Re: uninitialized value in modulus (%)by ichimunki (Priest) |
on Aug 19, 2002 at 14:14 UTC ( [id://191179]=note: print w/replies, xml ) | Need Help?? |
Is it issuing this warning multiple times for the same run? Otherwise: you get an error the first time through because you never set $alphabet{$s} to anything for its first use, but at the end of your sub, you ++ it, which means that thereafter it has a valid value (i.e. has been "initialized").
In Section
Seekers of Perl Wisdom
|
|