in reply to How to pass two lists to a sub?

It is impossible to pass two lists to a subroutine. And there is no such thing as a "list variable" in Perl.

I suspect that you are confusing arrays and lists. It is possible to pass two arrays to a subroutine and you do that by passing references to the arrays as others have pointed out.

The difference between arrays and lists is an important distinction to make. Failing to make that distinction will only lead to a lot of confusion.

--
<http://www.dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg