optiontrader has asked for the wisdom of the Perl Monks concerning the following question:
For example, I'd like to be able to find every instance of "jones" in table two and replace it's value with "BO" regardless of its position in the table. I appologize if this is unclear and very much appreciate any help or guidence. thank you, sean#Table 1 contains the find and replace values; @AoA = ( [ "jones", "B0"], [ "smith", "B1"], [ "adrew", "B1"], [ "larry", "B3"], ); #the 2nd table contains the data that I want to search in. @AoA2 = ( [ "jones", "AAAAA", "BBBBB", "CCCCC"] [ "aaaaa", "AAAAA", "larry", "CCCCC"] [ "jones", "AAAAA", "BBBBBB","CCCCC"] [ "DDDDD", "AAAAA", "BBBBBB","larry"] [ "jones", "AAAAA", "andrew","CCCCC"] [ "jones", "smith", "BBBBBB","CCCCC"] );
|
|---|