
davorg
Thaumaturge
/ Moderator
Dec 15, 2002, 2:20 AM
Post #5 of 7
(274 views)
|
|
Re: [yaniv_av] How 2 pass 2 lists to a function ?
[In reply to]
|
Can't Post
|
|
It is impossible to pass two lists to a subroutine. A subroutine recieves exactly one list of arguments. 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 http://www.dave.org.uk/ Get more help at Perl Monks
|