Daniel Shahaf wrote on Tue, Oct 18, 2011 at 08:55:44 +0200: > % perl -lne 'print $h{$_} ||= $unique++' \
Small bug: the last expression should be '++$unique'. (I actually caught that before posting, but copy-pasted the wrong version.)
Daniel Shahaf wrote on Tue, Oct 18, 2011 at 08:55:44 +0200: > % perl -lne 'print $h{$_} ||= $unique++' \
Small bug: the last expression should be '++$unique'. (I actually caught that before posting, but copy-pasted the wrong version.)