Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Golf for unique digits

by LanX (Canon)
on Jan 09, 2013 at 12:25 UTC ( #1012466=note: print w/ replies, xml ) Need Help??


in reply to Re: Golf for unique digits
in thread Golf for unique digits

as a compensation a new approach: =)

> perl -ple'$_=join"",sort split//;y///cs;$_=length' 1987 4 1988 3 2012 3 2013 4

EDIT: shortened the say away...

Cheers Rolf


Comment on Re^2: Golf for unique digits
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (11)
As of 2014-09-02 17:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls