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 are the various file operations in perl. Explain with example.
What is a chomp() function in perl?
How can arrays be tied?
What are the steps involved in configuring a server using cgi programming?
What are the different types of perl operators?
What is the closure in PERL?
How interpreter is used in perl?
How to create a directory in perl?
Elaborate on perl bite-wise operators.
Explain strftime() function in perl?
What are the purpose of close(), getc() and read() functions?
what is the difference between java and cgi?
What are the different ways to run cgi?
Explain substr function in perl?
How do I generate a list of all .html files in a directory?