Normally you use an array for things like that:
or without the for loop:my @C; for (my $i=0; $i< $msgcount; $i++) { $C[$i] = param("C$i"); }
Update: Changed $C[0] to $C[$i]my @C = map { param("C$_") } 0..$msgcount - 1;
In reply to Re: dynamically initializing variables with perl
by busunsl
in thread dynamically initializing variables with perl
by db2admin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |