$hash{somevalue}[0] = the first value (your $var1) $hash{somevalue}[1] = the second value (your $var3) $hash{somevalue}[2] = the third value (your $var4)