Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Hash and count of data values

by gjb (Vicar)
on Aug 18, 2003 at 13:51 UTC ( #284569=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
      foreach my $key (keys %hash) {
        print "$key $hash{$key}\n";
      }
    
  2. or download this
      my %hash;
      my $file = 'filehere.txt';
    ...
        $hash{$_}++;
      }
      close(DATA);
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://284569]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2022-12-05 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?