What is the best way to store 1key - 3 value in Perl?
I have a situation where I have 3 different values for each key.
I have to print the data like this:

    K1 V1 V2 V3
    K2 V1 V2 V3
    ...
    Kn V1 V2 V3
Is there any alternate efficient & easier way to achieve this other that that listed below?

I am thinking of 2 approaches:

    1) Maintain 3 hashes for 3 different values for each key. 
       Iterate through one hash based on the key and get the values from other 2 hashes 
       and print it.
       Hash 1 - K1-->V1 ...
       Hash 2 - K1-->V2 ...
       Hash 3 - K1-->V3 ...
        
    2)  Maintain a single hash with key to reference to array of values. 
        Here I need to iterate and read only 1 hash.
        K1 --> Ref{V1,V2,V3}
What is the best way to store 1key - 3 value in Perl?
===

I have a situation where I have 3 different values for each key.
I have to print the data like this:

    K1 V1 V2 V3
    K2 V1 V2 V3
    ...
    Kn V1 V2 V3
Is there any alternate efficient & easier way to achieve this other that that listed below?

I am thinking of 2 approaches:

    1) Maintain 3 hashes for 3 different values for each key. 
       Iterate through one hash based on the key and get the values from other 2 hashes 
       and print it.
       Hash 1 - K1-->V1 ...
       Hash 2 - K1-->V2 ...
       Hash 3 - K1-->V3 ...
        
    2)  Maintain a single hash with key to reference to array of values. 
        Here I need to iterate and read only 1 hash.
        K1 --> Ref{V1,V2,V3}