What is the difference between chop & chomp functions in perl?
Answer Posted / ramya
chop removes the last character and returns the character
chopped
Chomp removes any trailing string that corresponds to the
current value of $/ and returns number of characters removed
Is This Answer Correct ? | 11 Yes | 10 No |
Post New Answer View All Answers
Can you add two arrays together?
Does Perl have objects? If yes, then does it force you to use objects? If no, then why?
How to concatenate strings in perl?
What are perl array functions?
what is Chop & Chomp function does?
How to dereference a reference?
How do I do fill_in_the_blank for each file in a directory?
What is the difference between exec and system?
Explain the difference between die and exit in perl?
How to create a directory in perl?
Explain grooving and shortening of arrays?
How do you turn on the perl warnings?
Write the program to process a list of numbers.
What does undef function in perl?
What are scalar data and scalar variables?