in reply to search and replace plus counter
Your problem is that $oldstr never changes so your test of it using if ($oldstr =~ /core\:para/) is always true. You want to test $_ against that pattern, not $oldstr.
HTH
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: search and replace plus counter
by Anonymous Monk on Sep 20, 2013 at 10:36 UTC |
In Section
Seekers of Perl Wisdom