In this code, the hashes form loops: to avoid that, replace the rotate step by code that remove the first and last elements. --Dave# create pairs my @tmp = map { $_, $_ } @filenames; # rotate push @tmp, shift @tmp; # create the result my %next = @tmp; my %prev = reverse @tmp;
In reply to Re: Efficient Linked Lists
by dpuu
in thread Efficient Linked Lists
by Ionizor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |