This saves 2 strokes over yours:
perl -plE"@h{/./g}++;$_=keys%h"
And this saves 2 more over your version of tye's:
perl -lpE'$_=s/(.)(?!.*\1)//g'
In reply to Re^2: Golf for unique digits
by BrowserUk
in thread Golf for unique digits
by Cody Fendant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |