Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: error asking pakage namewhile using hashes
by boftx (Deacon) on Oct 06, 2013 at 05:30 UTC |
Back to
Seekers of Perl Wisdom