in reply to Loop 'for' and '$_'.
You have to use another variable, just like $my_other_var or anything else.#!/usr/bin/perl -w use strict; for (1 .. 10) { print $_, $/; for (11 .. 20) { print "\t$_", $/; } print $_, $/; }
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|