I consider it very rude that you open a new thread without even mentioning that you have four other threads already, all going around the same problem, where you already got lots of helpful answers.

Maybe you can take a step back and explain what problems you have with the answers you got there and how they did not work for you.

Also, as you have been told numerous times already, it would be very helpful for us to help you better if you showed example input and output, and also identified exactly how the output was not what you expected.

Your program initializes an array @entites, but you don't use that array anywhere. Please explain in simple text, not in a Perl program, what should be done.

Also, as you have been told several times already, please put all your output in between <code>...</code> tags, so we can see the difference between & and &amp;. If you reread your post, you will notice that & and & look quite the same unless you write them as <code>&</code> and <code>&amp;</code>.


In reply to Re: Check for string in array and substitue by Corion
in thread Check for string in array and substitue by sandy1028

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.