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
What are the various perl data types based on the context?
What are perl array functions?
Explain what is STDIN, STDOUT and STDERR?
What is chomp() operator/function?
How many loop control keywords are there in perl?
How to disable the mod_perl from apache_server as i have used perlfect search on the site and its pagination is not working and the remedy is to disable the mod_perl.
What does this symbol mean '->'?
If you want to empty an array then how would you do that?
what are the strategies followed for multiple form interaction in cgi programs?
Where the command line arguments are stored and if you want to read command-line arguments with Perl, how would you do that?
How can you define “my” variables scope in Perl and how it is different from “local” variable scope?
How to copy a file in perl?
Give an example of the -i and 0s option usage.
What is perl scripting?
In Perl we can show the warnings using some options in order to reduce or avoid the errors. What are that options?