in reply to Re: merging files using map
in thread merging files using map
This works fine as far as producing the numbers I want concerns. The problem is that in the above example I use the $_. In the real script I cannot do that since the $_ has the present value of the list I am processing. best, ruben@a = (0..100); @b = map {if ($_ % 2 != 0 && $_ % 5 == 0){$_}} @a; print @b;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: merging files using map
by keszler (Priest) on Jul 01, 2004 at 13:29 UTC |