in reply to Difference between for and foreach

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re^2: Difference between for and foreach
by tirwhan (Abbot) on Sep 17, 2007 at 15:31 UTC

    Wrong. See the replies by Joost and johngg, and for practical demonstration try this one-liner

    perl -e 'foreach ($i=0;$i<10;$i++) { print $i }'

    All dogma is stupid.