What is the difference between chop & chomp functions in perl?
Answer Posted / nagaraju kancherla
chop() removes the last character from a scalar value.
chomp() checks whether the last characters of a string or
list of strings match the input line separator defined by
the $/ system variable. If they do, chomp removes them.
| Is This Answer Correct ? | 25 Yes | 5 No |
Post New Answer View All Answers
What are some common methods to all handles in perl?
Why do you use Perl?
How to connect to SQL server through Perl?
What are the reasons that cookie server can’t handle multiple connections?
What is it meants by '$_'?
Explain lists and ivalue?
Explain about typeglobs?
How do you set environment variables in perl?
What are some of the key features of objects in perl?
In CPAN module, name an instance you use.
What are the various uses of perl?
Explain the difference between "my" and "local" variable scope declarations. ?
What is perl dbi?
Distinguish my and local?
What are the advantages and disadvantages of perl language?