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 to concatenate strings with perl?
Write a program to concatenate the $firststring and $secondstring and result of these strings should be separated by a single space.
Explain lexical variables.
What are scalars in perl?
Explain the difference between declarations of 'my' and 'local' variable scope in perl?
What is the function of cgiwrap in cgi programming?
Explain grooving and shortening of arrays and splicing of arrays?
What is epoch time in perl?
How do I generate a list of all .html files in a directory?
what are steps to do to lock the sony ericsson mobile with password?
What does length(%HASH) produce if you have thirty-seven random keys in a newly created hash?
how to get back up from private character editor which is saved in the format of .udf
Explain what is lvalue?
What value is returned by a lone `return;’ statement?
What's the difference between /^Foo/s and /^Foo/?