passing array arguments

T

tamiry

Hi,
I'd like to know how do I pass two arrays to a subroutine.
the problem is that
func(@kids,@addresses)
concatenates both lists to one.

I know I could do something like
func($#kids,$#addresses,@kids,@addresses)

but that's not fun at all.



thanks.
 
P

phaylon

tamiry said:
I'd like to know how do I pass two arrays to a subroutine.

What have you tried to find the answer in the peldoc or in the archives?

For you problem: Just pass references to the array's, not the arrays
themselves.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,608
Members
45,244
Latest member
cryptotaxsoftware12

Latest Threads

Top