Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Simple Keyword Generator

by hbm (Hermit)
on Sep 12, 2012 at 19:55 UTC ( #993296=note: print w/ replies, xml ) Need Help??


in reply to Simple Keyword Generator

One really minor thing I'd do differently: Rather than split on whitespace and then check length, just match 3 or more non-whitespace characters:

#foreach my $word (split /\s+/, $line) { # length($word) > 2 and $count_of{$word}++; #} $count_of{$_}++ for $line =~ /\S{3,}/g;


Comment on Re: Simple Keyword Generator
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2014-12-26 01:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (163 votes), past polls