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, replacing matched patterns with replacement text. This is fundamentally different from m// which only matches patterns. Options /f and /g are not standalone operators but flags used within substitution and matching operations.