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
Mention how many ways you can express string in Perl?
What is the purpose of goto expr statement?
How many loop control keywords are there in perl?
How can you replace the characters from a string and save the number of replacements?
There are some duplicate entries in an array and you want to remove them. How would you do that?
Where do we require ‘chomp’ and what does it mean?
What are the advantages and disadvantages of perl language?
Explain goto expr?
Explain lists in perl?
How to read from a pipeline with Perl
Which guidelines by Perl modules must be followed?
How will you get the count of parameters passed to a perl subroutine?
Which statement has an initialization, condition check and increment expressions in its body? Write a syntax to use that statement.
How can I implement the function overloading in Perl ? I read about the operator overloading, I do not know how to implement the function overloading. Thanks in advance ?
What is perl? What is the basic command to print a string in perl?