to print out the numbers from 1 to 10? That is specify a range to use in the for loop programmatically? Thanksmy $range = "1..10" for my $x ($range) { print "$x\n"; }
In reply to Specifying a range through a variable by Zubinix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |