PrepAway - Latest Free Exam Questions & Answers

Which one of the following choices will change all occurrences of the string "Up" to "Down"

Which one of the following choices will change all occurrences of the string “Up” to “Down” in a
scalar variable?

PrepAway - Latest Free Exam Questions & Answers

A.
$status = s/Down/Up/g;

B.
$status =~ g/Up/Down/s;

C.
$status =~ s/Up/Down/I;

D.
$status =~ s/Up/Down/g;


Leave a Reply