sunfish has asked for the wisdom of the Perl Monks concerning the following question:
}$size_array = scalar @car; for($k=0; $k<$size_array; $k++) { foreach $car(@car) { if ($make[$k] =~ /$car/) { push (@shop, $make[$k]); print cftr2dmatch2 "@shop"; next; } else { next; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regular expressions and nested loops
by Errto (Vicar) on Aug 26, 2007 at 02:26 UTC |