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
Differences between die and exit.
What are some of the key features of objects in perl?
Explain substr function in perl?
What does undef function in perl?
what is the function that is used to identify how many characters are there in a string?
How to check the status of airplane mode (enable/disable) in perl for Android mobile?
What is the difference between die and exit in perl?
Remove the duplicate data from @array=(“perl”,”php”,”perl”,”asp”)
What is the use of now constructor in perl?
How to access parameters passed to a subroutine in perl?
Assuming both a local($var) and a my($var) exist, what's the difference between ${var} and ${"var"}?
Why to use perl scripting?
Difference between the variables in which chomp function work ?
How can memory be managed in Perl?
What are scalars?