Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^3: Better way of doing!

by kcott (Archbishop)
on Aug 21, 2013 at 10:26 UTC ( [id://1050321]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Better way of doing!
in thread Better way of doing!

If you want to initialise all counts to zero, do this:

my %count = map { $_ => 0 } @keywords;

Also, see my update: that's probably a better choice of code for your application.

-- Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-20 15:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found