Yes, the question as asked is extremely vague, as evidenced by the things offered as loops
map/grep/foreach cannot loop forever, they are iterators, but are still considered loops by some
$ perl -le " print for 1 .. INF " Range iterator outside integer range at -e line 1.
In reply to Re^3: How many loops are there in Perl?
by Anonymous Monk
in thread How many loops are there in Perl?
by shajiindia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |