Apr 2, 2010, 11:04 AM
Post #3 of 3
1) Search google for 'code tags'. Read the first 10 results and come back and post what you have learned.
Re: [bettertony] a problem of subroutine
[In reply to]
2) Declare all variables with my(), e.g.:
my($num1, $num2) = (3, 4);
ArraySum(/@array1,/@array2)), error happens
That isn't how you get a reference for an array. See perlreftut.
(This post was edited by 7stud on Apr 2, 2010, 11:06 AM)