in reply to Set the flag
$flag1 = 1; $flag2 = 0; $flag3 = 0; s{<p>}{<con>}; s{.*\K</p>}{</con>}s; # Faster, Perl >= 5.10 s{(.*)</p>}{$1</con>}s; # Slower, any Perl
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Set the flag
by Anonymous Monk on Nov 06, 2009 at 01:01 UTC | |
by ikegami (Patriarch) on Nov 06, 2009 at 06:19 UTC |