No such thing as a small change | |
PerlMonks |
Re: the if statementby broomduster (Priest) |
on Sep 27, 2008 at 22:11 UTC ( [id://714066]=note: print w/replies, xml ) | Need Help?? |
This looks like homework, so here are some hints.
(keys %hash) is a list of the keys for %hash. The scalar assignment $input = (keys %hash) puts the number of keys into $input (which is probably not what you want to do). Updated: Scrub the stupidity; no need to check everything; this is a hash, after all.
In Section
Seekers of Perl Wisdom
|
|