jaichaud has asked for the wisdom of the Perl Monks concerning the following question:
My scalars get passed and I can manipulate them, but the arrays seem to be void. I have looked at lots of examples and tried a number of ideas, but nothing seems to work. I really appreciate in advance any advice/help.sub myCurve(@@@$$); $my_exp = myCurve(\@my_arx,\@my_ary,\@my_arz,$my_v1,$my_v2); sub myCurveX(@@@$$) { my $my_y = pop; my $my_x = pop; my ($my_xar,$my_yar,$my_zar) = @_; my @local_x = @$my_xar; my @local_y = @$my_yar; my @local_z = @$my_zar; # do some stuff return $my_calc; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Passing three arrays to a subroutine
by zentara (Cardinal) on Nov 09, 2010 at 16:50 UTC | |
by jwkrahn (Abbot) on Nov 09, 2010 at 18:27 UTC | |
by zentara (Cardinal) on Nov 09, 2010 at 19:34 UTC | |
by ikegami (Patriarch) on Nov 09, 2010 at 19:39 UTC | |
by zentara (Cardinal) on Nov 09, 2010 at 19:41 UTC | |
| |
|
Re: Passing three arrays to a subroutine
by chromatic (Archbishop) on Nov 09, 2010 at 16:54 UTC | |
by jaichaud (Initiate) on Nov 09, 2010 at 17:11 UTC | |
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 | |
|
Re: Passing three arrays to a subroutine
by tod222 (Pilgrim) on Nov 09, 2010 at 17:06 UTC | |
|
Re: Passing three arrays to a subroutine
by locked_user sundialsvc4 (Abbot) on Nov 09, 2010 at 18:50 UTC | |
|
Re: Passing three arrays to a subroutine
by choroba (Cardinal) on Nov 09, 2010 at 16:53 UTC |