in reply to Re^2: s/// not replacing data
in thread s/// not replacing data

That's not what you're doing. You run thru your list of swear words only once, applying it to the first line in @keep. If you intend to apply every substitution to every chat line, you need to either re-fetch the data, or, if there's not that many of them, keep them in memory.

Replies are listed 'Best First'.
Re^4: s/// not replacing data
by sulfericacid (Deacon) on Oct 31, 2005 at 16:43 UTC
    If this is the problem, would it not be easier for them to store the badwords into an array and apply it to each line?


    "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

    sulfericacid
        Yes..well.. I wanted to pretend I was smart, too! :P


        "Age is nothing more than an inaccurate number bestowed upon us at birth as just another means for others to judge and classify us"

        sulfericacid