> perl -ple'$_=join"",sort split//;y///cs;$_=length' 1987 4 1988 3 2012 3 2013 4
EDIT: shortened the say away...
Cheers Rolf
In reply to Re^2: Golf for unique digits
by LanX
in thread Golf for unique digits
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |