Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Hash problem - Perl noob

by japhy (Canon)
on Sep 15, 2006 at 16:54 UTC ( [id://573193]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for $i (@phrase) {
        $wordfreq{"$phrase[ $j ]"}++;
    #    print "$wordfreq{\"$phrase[ $j ]\"} appears $wordfreq{\"$phrase[ 
    +$j ]\"}\n";
        $j++;
    }
    
  2. or download this
    for my $word (keys %wordfreq) {
      print "$word appears $wordfreq{$word} times\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-04-19 15:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found