Linked lists in Perl are far better implemented with a hash
of all the elements -- it makes for much less memory, and
allows you to cheat by accessing a point directly. I'll have
some code up here in an hour or so to show it.
The only problem is elements with the same value, but this
(ah, yes) can be gotten around.