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

How to pass two lists to a sub?

You can't. But you can pass two arrayrefs. If you use the \@ prototype you can make this automatic. If anything is not clear in the documentation I pointed you to, feel free to ask for clarifications.