E
elroyerni
Hi -
I'm trying to assign to a variable the number of elements in a array
for example. I have array with data:
my @array_data;
I want to assign the number of elements in the array to a variable, i
tried this and looked it up and can't find a solution
Say array_data contains {0,1,2,3,4,5} i want to assign the number of
elements to a variable, in this case "6" to a variable.
i tried this and failed...
my $total = `0 + @{$results}`;
Any help?
Thanks!
I'm trying to assign to a variable the number of elements in a array
for example. I have array with data:
my @array_data;
I want to assign the number of elements in the array to a variable, i
tried this and looked it up and can't find a solution
Say array_data contains {0,1,2,3,4,5} i want to assign the number of
elements to a variable, in this case "6" to a variable.
i tried this and failed...
my $total = `0 + @{$results}`;
Any help?
Thanks!