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
Comment on data types and variables in perl.
How to convert strings into an array in perl?
How do I sort a hash by the hash value?
How do you set environment variables in perl?
How interpreter is used in perl?
How do I sort a hash by the hash key?
How can I display all array element in which each element will display on next line in perl ?
Is there any way to add two arrays together?
How to print escaping characters inside a string in perl?
What does a die() function do in perl?
Explain perl. When do you use perl for programming? What are the advantages of programming in perl?
You want to connect to sql server through perl. How would you do that?
What does next statement do in perl?
What is the use of command “use strict”?
What does -> symbol indicates in Perl?