Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: hash help

by davido (Cardinal)
on Sep 11, 2012 at 20:20 UTC ( [id://993056]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -nE '$count{$1}++ while /\b(the|hi|linux)\b/ig; END{say "$_ => $c
    +ount{$_}" for keys %count}' filename.txt
    
  2. or download this
    #!/usr/bin/perl
    
    ...
    }
    
    print "$_ => $count{$_}\n" for keys %count;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-25 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found