I didn't think this could work, even in perl:

my @[EMAIL PROTECTED] = @valuesarray;

    print Dumper @[EMAIL PROTECTED];
-------------------------------------------------------------------------------------------------
And get syntax error at "@hash{"    ???

This works:
my $idx=0;
my $key;
my %hash;
foreach $key(@keysarray){$hash{$key}=$valuesArray[$idx++] };

If it doesn't like the nested $idx++ just split it out on its own line:

$valuesArray[$idx];
$idx++;

Reply via email to