M
Markus Dehmann
Why can't I do the following?
foreach my @set ((1,2),(1000,2000)){
print "@set\n";
}
or
foreach my ($a,$b) ((1,2),(1000,2000)){
print "$a,$b\n";
}
Is there a way to make something like that work? I need two variables in
each loop step.
Thanks!
Markus
foreach my @set ((1,2),(1000,2000)){
print "@set\n";
}
or
foreach my ($a,$b) ((1,2),(1000,2000)){
print "$a,$b\n";
}
Is there a way to make something like that work? I need two variables in
each loop step.
Thanks!
Markus