Dec 15, 2002, 2:20 AM
Post #5 of 7
It is impossible to pass two lists to a subroutine. A subroutine recieves exactly one list of arguments.
Re: [yaniv_av] How 2 pass 2 lists to a function ?
[In reply to]
You can, however, pass two _arrays_ to a subroutine. You do this by passing references to the arrays.
You can't have references to lists. Lists and arrays are different things.
Dave Cross, Perl Hacker, Trainer and Writer
Get more help at Perl Monks