Substitutions with s///
If you think of the m//
pattern match as being like your word processor’s “search” feature, the “search and replace” feature would be Perl’s s///
substitution operator. This simply replaces whatever part of a variable matches a … Read the rest