print "You are well versed!"."\n"; What will be the output?
-
Compilation error
-
You are well versed!
-
versed!
-
You are well
B
Correct answer
Explanation
The Perl print statement outputs the string "You are well versed!" followed by a newline character "\n". The semicolon terminates the statement. Perl's print function simply outputs the given string to STDOUT. Options C and D would only be true if we were using substring operations or different string splitting functions.