There's more than one way to do things | |
PerlMonks |
Re^2: Array Element Substitutionby Mac1 (Initiate) |
on Aug 23, 2012 at 17:56 UTC ( [id://989360]=note: print w/replies, xml ) | Need Help?? |
Thanks for your response. A hash approach would be great, but not sure how to make the substituions. The actual 'OriginalNames.txt' would contain the names one after another such as: Earth Jupiter Venus Mars The 'AlternateNames.txt' file would contain the exact replacement in the same order aligning to the 'OriginalNames.txt such as: Host1 Host2 Host3 Host4 Thus, Earth would be replaced by Host1, Jupiter replaced by Host2, Venus Replaced by Host3 and Mars replaced by Host4
In Section
Seekers of Perl Wisdom
|
|