But why even use prototypes in the sub?$my_exp = myCurveX(\@my_arx,\@my_ary,\@my_arz,$my_v1,$my_v2); sub myCurveX(){ my ($arrayref1, $arrayref2,$arrayref3, $v1, $v2) = @_;
You say "why even use prototypes" and then you use a prototype that says accept zero arguments, but the next line says to accept five arguments?
In reply to Re^2: Passing three arrays to a subroutine
by jwkrahn
in thread Passing three arrays to a subroutine
by jaichaud
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |