There is no difference. From perldoc perlsyn:
The
foreachkeyword is actually a synonym for theforkeyword, so you can useforeachfor readability orforfor brevity.
There is no difference. From perldoc perlsyn:
The
foreachkeyword is actually a synonym for theforkeyword, so you can useforeachfor readability orforfor brevity.