http://www.perlmonks.org?node_id=996435


in reply to Linked list in Perl

> Or is there any better way to create a Linked List in perl??

Arrays of length 2 consume far less memory. See for instance "Higher Order Perl" or many examples here in the archives.

like here Re: How to implement Linked List

If you're desperate, you could even try increase compactness by using dualvars assigning references to the number slot and values to the string slot. see Scalar::Util (don't know if it's practical =)

Cheers Rolf