We don't bite newbies here... much | |
PerlMonks |
Re: Hash and count of data valuesby Anonymous Monk |
on Aug 18, 2003 at 13:54 UTC ( [id://284573]=note: print w/replies, xml ) | Need Help?? |
Instead of print "$item\t$hash{$item}\n"; try print DATA "$item\t$hash{$item}\n";. Also avoid calling your filehande DATA as this is the filehandle of the DATA section of the Perl program. And lastly, you can use my @array = <DATA>; instead of my @array = (<DATA>);. Hope this helped.
In Section
Seekers of Perl Wisdom
|
|