My perl program parses data and outputs the relevant values I need into an array.
(code has a series of ifels conditions I check).
push (@array1,$var1, ",", $var2, ",", $var3, ",", $var4, ",", $var5, ",", $var6,"\n");
The output.csv file contains 6 columns, namely, var1, var2,....var6.
I need to sort my output.csv file first by $var4 and then by $var5. I would appreciate if you could:
1) Tell me what are the ways this can be achieved.
2) Code that would do this (with a brief explanation)