I have two array's:
@arr = qw(feature1 feature2 feature3);
@arr2 = qw(prod1 prod2 prod3 prod4);
I need a final hash in perl which would look like:
%hash = {
feature1 => prod1,
feature2 => prod2,
feature3 => qw(prod3 prod4)
};
To merge the two arrays I used:
@hash{@feat} = @prod;
print Dumper \%hash;
How should I achieve this?