Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^6: Golf: Improve this guy's fail . . . please!

by jwkrahn (Abbot)
on Jul 29, 2009 at 02:52 UTC ( [id://784103]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Golf: Improve this guy's fail . . . please!
in thread Golf: Improve this guy's fail . . . please!

my %letters;
$letters{$_}++ for grep /\w/, split //, $input;


That would be simpler as:

my %letters;
$letters{$_}++ for $input =~ /\w/g;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://784103]
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-19 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found