in reply to Number of elements in array
OH Chilly Monk,
If I want to know the number of elements in an array I'd try one of two things:
Either of the two will work.# assume two arrays with a number of elements # @rray1 & @rray2 my $elements_1 = scalar @rray1; # or my $elements_2 = $#rray2 + 1;
|
|---|