What is the difference between chop & chomp functions in perl?
Answer Posted / mass
Chop removes the last character of string completely and returns that last character. While chomp removes the last character if it is new line.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is epoch time in perl?
what are the strategies followed for multiple form interaction in cgi programs?
How do I read command-line arguments with Perl?
What is the easiest way to download the contents of a URL with Perl?
What are the various advantages and disadvantages of perl?
what are the steps involved in reading a cgi script on the server?
What is stdin in perl?
What does -> symbol indicates in Perl?
What is Perl?
What is the purpose of _package_ literal?
What is posix in perl?
Explain grooving and shortening of arrays?
What are the various file operations in perl. Explain with example.
How do I replace every TAB character in a file with a comma?
What are numeric operators in perl?