I am trying to do something like the following
my @type1_cols = qw(col1 col2 col3);
my ($col1, $col2, $col3) = split (/:/,$string);
...
foreach my $col (@type1_cols){
$hash->{$col} = ${$col}; # <---- this line is the issue. how do i do ${$col}
}
any help is much appreciated.