in reply to How to improve my code? main concern:array as hash element
both make @gi interpolate the first one is
Gi => $gi[0], $gi[1] => $gi[2], [download]