in reply to TIMTOWTDI - printing an array
As long as you're permuting over the for and foreach synonyms, why not include
foreach (my $x = 11; $x < 33; $x += 11) { print $x }
And for that matter, how about array references:
my @array = (11, 22, 33, 44);
my $array_ref = \@array;
print for @array;
print for @$array_ref;
etcetera.
|
|---|