What is the difference between chop & chomp functions in perl?
Answer Posted / devinder kumar
chop will indiscriminately remove (and return) the last
character passed to it, while chomp will only remove the
end of record marker (generally, "\n"), and return the
number of characters so removed.
| Is This Answer Correct ? | 40 Yes | 4 No |
Post New Answer View All Answers
Explain splicing of arrays?
Which has highest precedence in between list and terms? Explain?
What is the function of cgiwrap in cgi programming?
Explain string comparison operators in perl.
What is the difference between perl list and perl array?
What is cpan ? What are the modules coming under this?
How to check the status of airplane mode (enable/disable) in perl for Android mobile?
Explain cpan?
What is the closure in PERL?
How will you create a file in perl?
What is the use of -t?
how to get back up from private character editor which is saved in the format of .udf
How do you match one letter in the current locale?
What are hashes?
Explain different types of perl operators.