Syntactic Confectionery Delight | |
PerlMonks |
Re: Hash and count of data valuesby bm (Hermit) |
on Aug 18, 2003 at 13:45 UTC ( [id://284568]=note: print w/replies, xml ) | Need Help?? |
print "$item\t$hash{$item}\n";
should probably be something like
Note that you also have two sets of open and close calls in your snippet. Maybe you should look at one open/close with a while(<DATA>) {...} loop that populates your hash.
In Section
Seekers of Perl Wisdom
|
|