in reply to Re^3: sequential substitutions
in thread sequential substitutions
Basically, yes, though I am going to be doing it all at once (using a technique described in a later answer) - reading in the entire file, and then processing it with:
$fragment =~ s/<foo>\d+<\/foo>/'<foo>' . $i++ . '<\/foo>'/eg;
Thank you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: sequential substitutions
by AnomalousMonk (Archbishop) on Aug 03, 2018 at 15:00 UTC | |
by hdb (Monsignor) on Aug 06, 2018 at 08:25 UTC |