in reply to hash and array

So very close. :-)

Change the "=1" to "++".

for my $i (@array) { $hash{$i}++; }

Replies are listed 'Best First'.
Re^2: hash and array
by zulqernain (Novice) on May 22, 2005 at 15:07 UTC
    thanks