Hmmm...Perl is probably a bad example. My apologies. I was thinking more along the lines of this: A C++ for loop: #include <iostream> using std::cout; int main() { for (int i = 0; i < 10; i++) { cout << i << "\n"; } return 0; }