perl array to hash
Hello everyone
so, here is my issue
@Y=(S1,S2,S3)
@Z=(A1,A2,A3,A4)
I'd like to create hash like
%W=>{S1="A1,A2,A3,A4",S2=>"A1,A2,A3,A4",S3=>"A1,A2,A3,A4"}
and to print
Key is: S1 and values are A1 A2 A3 A4
Key is: S2 and values are A1 A2 A3 A4
Key is: S3 and values are A1 A2 A3 A4
i'm trying to do a backup script but have to better understand hash to arrays
thanks !!
|