in reply to Doing a find/replace on the nth line

jdev20,
You can use $. (see perldoc perlvar) and the modulus operator (% - see perldoc perlop).
perl -pi -e "s/searchpattern/replacepattern/ if $. % 3 == 0" filename
That will apply the search/replace on every 3rd line.

Cheers - L~R