in reply to Re: Difference between for and foreach
in thread Difference between for and foreach

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.