I'm still a novice so please bare with me. I have one table that is essentially a long list of find and replace values. First column being a "find" value and the 2nd Column being the "replace" value. The 2nd table is the table I'd like to search in. I can't come up with anything that works.
#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"] );
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

In reply to find and replace project with values coming from a table by optiontrader

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.