my(@words, $count, $word); chomp(@words =<STDIN> ); foreach $word (@words) { $count{$word} += 1; #or $count{$word}++; } foreach $word (keys %count){ }
this gives an error requires package name..any one plz help me thanks in advance
In reply to error asking pakage namewhile using hashes by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |