>foreach (@letters) { > $hash{$_}++; > print "$_\t $hash{$_} \n"; >}
I think,the code should be written as below: foreach (@letters) { $hash{$_}++; } foreach (sort keys %hash){ print "$_ = $hash{$_} \n"; } -- Jeff Pang NetEase AntiSpam Team http://corp.netease.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>