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
How do you find the length of an array?
Which of these is a difference between Perl and C++ ?
Create a function that is only available inside the scope where it is defined ?
Can you add two arrays together?
List the data types that Perl can handle?
Difference between the variables in which chomp function work ?
Explain 'grep' function.
what is the main function of fork() in cgi programming?
Explain goto label, goto name, and goto expr?
How to determine strings length in perl?
What does next statement do in perl?
What is the function of virtual documents in cgi programs?
Is there any way to add two arrays together?
What are different data types that perl supports. Elaborate on them.
What is it meants by '$_'?