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 q (single q) operator in perl?
Explain the use of 'my' keyword in perl?
What are different data types that perl supports. Elaborate on them.
What is the use of 'ne' operator?
What does last statement do in perl?
What is stdin in perl?
How do I replace every character in a file with a comma?
You want to read command-line arguements with perl. How would you do that?
How can information be put into hashes?
What's the difference between /^Foo/s and /^Foo/?
How do I do fill_in_the_blank for each file in a directory?
What is 'commit' command in perl?
For a situation in programming, how can you determine that Perl is a suitable?
What is a perl references?
How to concatenate strings in perl?