in reply to Re: Returning two lists from a sub
in thread Returning two lists from a sub

The calling code can be simplified some:

my ($len, @b) = getlists(); my @a = splice(@b, 0, $len);

Of course, it's still horrible.