What is the result of this script: $a = "This is Perl"; $b="This is Perl\n\n"; chomp($a); chomp($b);?

A. $a contains "This is Perl"; $b contains "This is Perl\n"  
B. $a contains "This is Per"; $b contains "This is Perl\n"
C. $a contains "This is Perl"; $b contains "This is Perl"
D. $a contains "This is Perl\n"; $b contains "This is Perl\n"

Ans: A

0 comments: