But the OP specified "preserving the original order of the elements". Hashes don't preserve order.
In reply to Re^2: Perl one-liner to remove duplicate entries from PATH
by muntfish
in thread Perl one-liner to remove duplicate entries from PATH
by eyepopslikeamosquito
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |