Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
my %words = ( score => { replacement => 'twenty', stopwords => { fourscore => 1, scored => 1, scores => 1, }, }, core => { replacement => 'center', stopwords => { encore => 1, coreagent => 1, }, }, centre => { replacement => 'center', stopwords => { }, }, ... );

If you have the data structure above, you may have enough to construct an efficient logic needed to achieve your task.

In reply to Re: Efficient selective substitution on list of words by repellent
in thread Efficient selective substitution on list of words by Polyglot

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, 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, 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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    [Discipulus]: yes LanX.. is so good to be appreciated (I fortunately have a big self estimation that compensate)
    [LanX]: you can manipulate a html tree by addressing and replacing so called document objects (DOM) and from my experience the same methods can be used with any XML, though I didn't test all browsers yet
    LanX just joking, playing "ego judo"
    [marto]: good morning all
    [Corion]: Hi marto!
    [marto]: the race to the bottom continues, many people lost their job yesterday as a client moves to another outsourcer
    [LanX]: brexit or perlxit ?
    [Corion]: Ow, marto :-/ I hope you aren't affected (except for the looming dread of more work for the same pay)
    [marto]: unrelated
    [marto]: Corion, no we're already being g tupe transferred to another employer. This was a banking sector client. They provided a reporting platform using ancient tech

    How do I use this? | Other CB clients
    Other Users?
    Others chilling in the Monastery: (14)
    As of 2017-03-23 09:57 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      Should Pluto Get Its Planethood Back?



      Results (285 votes). Check out past polls.