I'm trying replace names in a file, with names from a list included in __DATA__ in the script below. Now assume I have a text file which contains hundreds of different names, and I want to replace certain ones with a mapping of say:
JOE -> JOHN
FRED -> FREDERICK
SAM -> SAMANTHA

Do I need to create a hash with the 6 names above before I can replace instances of JOE, FRED, and SAM, in a text file?