Hello,
I would like to sort three arrays. The arrays are created at the same time from parsing a file. The arrays are linked by the common index when the arrays were created. Array names are @HOST_IP, @HOST_NAME and @HOST_DESCRIPTION. I would like to perform a alphanumeric sort on @HOST_NAME so that the relative index in each remain consistent and not jumbled. I saw other posts talking about using hashes, but I really didnt understand how those worked. After parsing this file, I want to generate a /etc/hosts file with the hosts listed alphabetically.
thanks