in reply to qr//ms problem

Others have provided answers to what you should have asked, but I'll answer what you really asked. The answer is that qr// creates a precompiled regexp with all the modifiers set. So when you create $np, you need to specify the /ms there. If you were to print out $np, you'd see that it starts with (?x-ism:, meaning that it overrides any modifiers you specify later on (so that it has its own self-contained meaning).

Replies are listed 'Best First'.
Re^2: qr//ms problem
by ikegami (Patriarch) on Jul 14, 2005 at 15:05 UTC
    True. However, it's moot in this case because there are no "." for /s to affect, and no "^" or "$" for /m to affect. Moving or adding those modifiers won't help.