in reply to Re: Regexp string concat
in thread Regexp string concat

As for code ... you still don't have all the requirements laid out yet. Specifically:

Replies are listed 'Best First'.
Re^3: Regexp string concat
by dragonchild (Archbishop) on Jun 14, 2004 at 17:41 UTC
    Heh. Your requirements seemingly contract each other. Specifically, you state that @new_query = @query if a value in @query isn't matched. However, you say that if something isn't matched and something else is matched twice, remove the double. But, you say that there can never be a double match.

    In other words, it doesn't sound like you can explain the requirements to a teddybear. I would spend some time with pencil and paper before going much further. Then, when you have pencil and paper down, convert those into test cases before writing any code.

    ------
    We are the carpenters and bricklayers of the Information Age.

    Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

    I shouldn't have to say this, but any code, unless otherwise stated, is untested