#same as a hash, only with square brackets # dont forget $index1/2/3 all have to be integers # so you will have to index every entry to the file. $ThreeDArray[ $index1 ][ $index2 ][ $index3 ] = $DATA;