Google News
logo
Perl - Quiz(MCQ)
Which function is used by perl for displaying the length of a string?
A)
len
B)
split
C)
length
D)
string

Correct Answer :   length


Explanation :

The length function is used by perl to return the length of any string. For example,
$x= “Srinivas”;
print length($x);       // prints 8

Advertisement