What is the difference between chop & chomp functions in perl?
Answer Posted / preethi
chop removes last character of the given string whereas
chomp removes the whitespace along with the character at the
end
chop-------> Perl----> Per
chomp------> Perl Program ----> Perl
| Is This Answer Correct ? | 4 Yes | 15 No |
Post New Answer View All Answers
Differentiate use and require?
When does circular reference occur?
You want to concatenate strings with perl. How would you do that?
How can you use Perl warnings and what is the importance to use them?
Explain lexical variables.
What are the various perl data types based on the context?
What does the qq{ } operator do?
What does a die() function do in perl?
How to do comment in perl?
What does -> symbol indicates in Perl?
How do I send e-mail from a Perl/CGI program on a Unix system?
How can arrays be tied?
What are the advantages of perl programming?
What are the advantages and disadvantages of perl language?
How do I print the entire contents of an array with Perl?