
Jasmine
Administrator
Jan 19, 2001, 3:13 PM
Post #1 of 1
(2957 views)
|
How do I handle circular lists?
|
Can't Post
|
|
(From the Perl FAQ) How do I handle circular lists? Circular lists could be handled in the traditional fashion with linked lists, or you could just do something like this with an array: unshift(@array, pop(@array)); # the last shall be first push(@array, shift(@array)); # and vice versa
|