What is the difference between chop & chomp functions in perl?
Answer Posted / ramya
chop removes the last character and returns the character
chopped
Chomp removes any trailing string that corresponds to the
current value of $/ and returns number of characters removed
| Is This Answer Correct ? | 11 Yes | 10 No |
Post New Answer View All Answers
What is the use of now constructor in perl?
What is lexical variable in perl?
What are the various perl data types based on the context?
How will you create a file in perl?
What does file test operators do in perl?
What is v-strings?
Explain socket programming in perl?
what is Perl one liner?
Write a script to reverse a string without using perl's built in functions?
what are the three groups involved in information sharing?
What can be done for efficient parameter passing in perl? Explain.
How can memory be managed in Perl?
What is the importance of perl warnings? How do you turn them on?
Explain the different types of data perl can handle.
Which of these is a difference between Perl and C++ ?