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

...other than the fact that it does not work...

Your my in the sub hides the "outer" @a and @b.

I did mention your technique as (Ok a third way is via a out of bounds global thingy.)