open(ORIGINALNAMES,"./OriginalNames.txt"); # Eg. Jupiter Mars Earth etc. @originalNames = ; open(ALTERNATENAMES,"./AlternateNames.txt"); # Eg. Host1 Host2 Host3 etc. @alternateNames = ; open(LOG,"./log.txt") or die; ## Log file containing names wanting to be replaced eg. Jupiter Mars Earth etc. @log = ; chomp @log; ## Should I do a for for($i = 0; $i<=$#log; $i++) { ### Not sure how to proceed to loop through log file, find the original names and then substitute with the Alternate Names.. }