Google News
logo
Perl - Quiz(MCQ)
___ function is used for removing the last character from the line.
A)
cut
B)
split
C)
chop
D)
erase

Correct Answer :   chop


Explanation : In many conditions, we may need to chop the last character –especially when there is a newline character. For this purpose, chop function is used.

Advertisement