Flame has asked for the wisdom of the Perl Monks concerning the following question:
print "hi\n" foreach (1..3); print "hi\n" for (1..3); print $_ for('hi','over','there'); print $_ foreach('hi','over','there');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: for vs foreach?
by talexb (Chancellor) on May 07, 2002 at 04:16 UTC | |
|
Re: for vs foreach?
by educated_foo (Vicar) on May 07, 2002 at 05:34 UTC | |
by tadman (Prior) on May 07, 2002 at 06:13 UTC | |
|
Re: for vs foreach?
by Flame (Deacon) on May 07, 2002 at 04:12 UTC | |
|
Re: for vs foreach?
by thunders (Priest) on May 13, 2002 at 20:50 UTC | |
|
Re: for vs foreach?
by jsprat (Curate) on May 07, 2002 at 17:24 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |