Multiple choice technology programming languages

Which of the following operators work most like substitution?

  1. /f

  2. /g

  3. s///

  4. m//

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The s/// operator in Perl performs substitution (search and replace). The m// operator is for pattern matching only, while /g is a modifier that applies operations globally.