http://qs321.pair.com?node_id=225207


in reply to Re: Re: dynamically initializing variables with perl
in thread dynamically initializing variables with perl

Try the following map (untested):
my @C = map { param("C$_") || 'OFF' } 0..$msgcount - 1;
It should give something like:
$C[0] = "ON"; $C[1] = "OFF"; $C[2] = "ON";