What is the difference between chop & chomp functions in perl?
Answer Posted / mass
Chop removes the last character of string completely and returns that last character. While chomp removes the last character if it is new line.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
List all the features of perl programming?
Why does Perl not have overloaded functions?
What is the difference between perl array and perl hash?
List the files in current directory sorted by size ?
What are stdin, stdout and stderr?
How can you use Perl warnings and what is the importance to use them?
What is epoch time in perl?
How do you turn on the perl warnings?
Mention how many ways you can express string in Perl?
Differentiate use and require?
What is the use of –w?
How can you define “my” variables scope in Perl and how it is different from “local” variable scope?
How do you set environment variables in perl?
Explain what is STDIN, STDOUT and STDERR?
what is the function of Return Value?