What is the difference between chop & chomp functions in perl?
Answer Posted / deepesh
chop() is used to remove last character where chomp() is
only remove new line if its existing or white space.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Explain about typeglobs?
How to open a directory in perl?
What is the importance of perl warnings?
How does a “grep” function perform?
How do I do fill_in_the_blank for each file in a directory?
How to get help for perl?
List all the features of perl programming?
Explain perl. What are the advantages of programming in perl?
What is grep used for in perl?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
What is use of ‘->’ symbol?
How can information be put into hashes?
What is the use of 'ne' operator?
How do you match one letter in the current locale?
What's the difference between /^Foo/s and /^Foo/?