in reply to Re: Passing three arrays to a subroutine
in thread Passing three arrays to a subroutine
So in my subroutine I don't want to change the array values, but I need to use them in some calculations. The arrays passed to the subroutine are chosen based on some conditions. The calculations work in the subroutine - it is just getting the array values to it. I initially put the arrays in the subroutine until I realized that there would be four different sets of arrays to possibly come into play.@my_arx=(1.0,2.0) @my_ary=(3.0,4.0,5.0) @my_arz=(10.0,20.0,30.0,40.0,50.0,60.0) # z = f(x,y)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Passing three arrays to a subroutine
by jaichaud (Initiate) on Nov 09, 2010 at 17:31 UTC | |
by TomDLux (Vicar) on Nov 09, 2010 at 21:17 UTC | |
by afoken (Chancellor) on Nov 10, 2010 at 22:49 UTC |