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 are the reasons that cookie server can’t handle multiple connections?
What are the arguments and what do they mean in perl programming?
Explain returning values from subroutines?
How do I sort a hash by the hash value?
what is Perl one liner?
What is the difference between localtime() and gmtime() functions?
What is the different between array and hash in perl programming?
What are hashes?
What does the’$_’ symbol mean?
What are the various perl data types based on the context?
Explain socket programming in perl?
What is eval function in perl?
What is goto statement in perl?
What is perl scripting?
What are the purpose of close(), getc() and read() functions?