in reply to Re^2: to loop through an array
in thread to loop through an array and store each of the subtotals in the elements of another array
what i am trying todo is store the number of occurences for each of the words in the findle arrayfor my $element (@findle) { if (/\Q$element\E/ ) { print "$_\n"; $number++; # push @hit $element; push(@hit, $number); #@lines = # print ("there are : " . $number); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: to loop through an array
by kennethk (Abbot) on May 12, 2011 at 21:48 UTC | |
by alexlearn (Initiate) on May 13, 2011 at 20:42 UTC | |
by kennethk (Abbot) on May 16, 2011 at 14:11 UTC |