This seems to work just as well?
perl -nlE"say s/(.)(?!.*\1)//g" [download]
In reply to Re^3: Golf for unique digits (15) by BrowserUk in thread Golf for unique digits by Cody Fendant