I think you should study your data first. For example, how are those
fields separated? Usually fields are tab-delimited. If this is true with
your data, you can split lines with split(/\t/,$line), then the fields
will be correctly separated.
On 4/2/15 10:43 AM, Anirban Adhikary wrote:
Hi List
I prefer to decode this kind of code from outside to inside.
1. The sigil @ indicates the result is an array
2. Thus, $var1{$var2} should be an array reference
3. The structure of $var1{$var2} suggests var1 means a hash, or %var1
4. Thus, $var2 is a key of the hash %var1
So, %var1 is a hash of a