Which of the following tests if the string held in $qn includes the word "perl"?

A. if ($qn =~ /perl/) .....
B. if ($qn == "perl") ....
C. if ($qn = "perl") .....
D. if ($qn eq "perl") .....

Ans: B


0 comments: