in reply to for() or foreach() ?

None, the two keywords are interchangeable.

Flavio
perl -ple'$_=reverse' <<<ti.xittelop@oivalf

Don't fool yourself.