in reply to Re: subtractionn in an array
in thread subtractionn in an array
# to loop through the array, I found it usefull to increment my count +var ($i) by two # here, scalar(@List), returns the number of elements in the array. for(my $i=0;$i < scalar(@List);$i+=2){
Why increment by two?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: subtractionn in an array
by Rudolf (Pilgrim) on Mar 21, 2012 at 23:30 UTC |