The calling code can be simplified some:
my ($len, @b) = getlists(); my @a = splice(@b, 0, $len);
Of course, it's still horrible.
In reply to Re^2: Returning two lists from a sub
by ikegami
in thread Returning two lists from a sub
by cormanaz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |