Given segment of code:
What does the symbol /z does?
A. changes line
B. matches the beginning of a string
C. matches the end of a string
D. none of the mentioned
Code:
$string1 = "Hello\nWorld\n";
if ($string1 =~ m/d\n\z/) {
print "$string1 is a string ";
print "that ends with 'd\\n'.\n";
}
A. changes line
B. matches the beginning of a string
C. matches the end of a string
D. none of the mentioned