in reply to Dynamically assigning number of for loops?
my %to_combine = ( A => "0,1", B => "0,1", C => "0,1", X => "0,1", ); # Then the following prints it out... print join " ", sort keys %to_combine; print "\n"; my $s = join "\\ ", map "{$to_combine{$_}}", sort keys %to_combine; print "$_\n" for glob $s;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dynamically assigning number of for loops?
by newbio (Beadle) on Oct 23, 2004 at 11:55 UTC | |
by tilly (Archbishop) on Nov 05, 2004 at 04:07 UTC |