http://www.perlmonks.org?node_id=1233295

ksikder has asked for the wisdom of the Perl Monks concerning the following question:

I have an excel with 10 rows and 15 columns. First row is the name of the parameters and rest are their values respectively. Each row represents different set of parameter values.

I want the perl script to create a script based on a template which will take all the parameter values and put them in an array.
blue red green orange 5 4 6 6 2 3 4 9 1 2 4 5
The script will create a file like this:
arg (row 1 elements) "blue indexes are" @blue=[5 2 1]; "red indexes are" @blue=[4 3 2]; "green indexes are" @blue=[6 4 4]; "orange indexes are" @blue=[6 9 5]; }