Search and replace in Perl?

Super Fudge

New member
Say I have a text file, and in it says "cupcakes sold = 3" and I wanted to make a perl script that would find that line, and then replace 3 by the value of n, where n is part of a large loop where after each loop, n_new = n_old + 1. How would I do this? What is this called in perl?
 
Back
Top