# Standard setup stuff and file handle opening goes here while () { s#pattern#replacement#; }