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
How will you open a file in a write-only mode in perl?
Explain goto label, goto name, and goto expr?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
Can we load binary extension dynamically?
How interpreter is used in perl?
what are the steps involved in reading a cgi script on the server?
How does polymorphism work in perl?
What are the steps involved in configuring a server using cgi programming?
List all the features of perl programming?
How to add elements in a hash in perl?
What is the difference between exec and system?
What is the use of strict?
What is boolean context?
You want to open and read data files with perl. How would you do that?
Explain '->' in perl?