in reply to (Golf) unique

A combination of both insensate's and Jasper's gems.

01 23456789012 perl -pe '$_ x=!$$_++'

Update: This is, unfortunately, version specific. It works on 5.8 but not on earlier versions. See the short discussion starting with jmcnamara's reply to insensate. Another variation which shouldn't be version specific and which ties Jasper's:

01 234567890123456 perl -pe '$_ x=!${_.$_}++'

-sauoq
"My two cents aren't worth a dime.";