alexlearn has asked for the wisdom of the Perl Monks concerning the following question:
currently number is a scalar. What i would like todo is each time i increment through the array to the next element it will store the instances in an array element.my @findle = ("fever","febbre","la fièvre","koorts,") ; I then loop through the array and perform a regular expression for ($i=0; $i<$size; $i++) { if ($_ =~ /$findle[$i]/ ) { print "$_\n"; $number++; #@lines = # print ("there are : " . $number); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: to loop through an array
by kennethk (Abbot) on May 12, 2011 at 17:23 UTC | |
by alexlearn (Initiate) on May 12, 2011 at 20:02 UTC | |
by alexlearn (Initiate) on May 12, 2011 at 21:39 UTC | |
by kennethk (Abbot) on May 12, 2011 at 21:48 UTC | |
by alexlearn (Initiate) on May 13, 2011 at 20:42 UTC | |
|