in reply to Re^2: incremental substitution w/ regexp only?
in thread incremental substitution w/ regexp only?

That's not the code I posted. You changed $i (9th letter) to $1 (one). My code works fine.
>perl -le"$_='abc1 abc2 abc3 abc4 abc5'; s/1/++$i/eg; print" abc1 abc2 abc3 abc4 abc5

Replies are listed 'Best First'.
Re^4: incremental substitution w/ regexp only?
by AnomalousMonk (Archbishop) on Dec 25, 2008 at 16:19 UTC
    Aha – a Christmas cracker!

    Update: Too late, I realized my reply should've been "'$i see!', said the blind man".