I am automating the reading from three arrays and need to access the array names from within an array. It is purely a syntax issue but I am pulling my hair out.
The arrays are named something like this, although I may be declaring the names incorrectly.
I need to programatically read the contents of any one of 3 multidimensional arrays which are declared before this point in the script. The script is written and functions as expected but I need to condense the code into a single sub routine in order to make for manageable house keeping.
Manual access syntax is:-
Any help would be greatly appreciated.
Keith
The arrays are named something like this, although I may be declaring the names incorrectly.
Code:
@ARRAY_NAMES=("PRO_FILE","CON_FILE","BID_FILE");
Manual access syntax is:-
Code:
$FILE_ITEM=$PRO_FILE[4][8];
$FILE_ITEM=$CON_FILE[6][2];
$FILE_ITEM=$BID_FILE[8][4];
Keith