in reply to search and replace with serialized answers

perl -pe's/(?<=test)/ $state++ % 5 + 1 /e'

Replies are listed 'Best First'.
Re^2: search and replace with serialized answers
by Anonymous Monk on May 01, 2009 at 20:01 UTC
    Thanks to those that helped me answer this poser. I'm not very fluent in perl, and just wanted to ask for some advice from people who know more about it than me. Thank You Very Much!