in reply to substitution issue

$flag is set to a string consisting of \w characters. Then it's matched against /<Content>/. Considering that it's impossible for $flag to contain a < or a > character*, it will never match.

* Unless you have a very weird locale in effect.

Replies are listed 'Best First'.
Re^2: substitution issue
by ikegami (Patriarch) on Nov 02, 2009 at 14:20 UTC

    $flag is set to a string consisting of \w characters.

    No.