Multiple choice technology programming languages

$input = “abdce”; $output = $input =~ s/abc/123; print $input; print $output

  1. abcde nullstring

  2. abdce 3

  3. abdce null string

  4. abdce 0

  5. abdce 1

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

The input string 'abdce' does not contain the substring 'abc', so the substitution operator s/abc/123/ fails and returns an empty (null) string. The original variable \$input remains unchanged as 'abdce', while the result \$output receives the null string.