What is the difference between chop & chomp functions in perl?
Answer Posted / devinder kumar
chop will indiscriminately remove (and return) the last
character passed to it, while chomp will only remove the
end of record marker (generally, "\n"), and return the
number of characters so removed.
| Is This Answer Correct ? | 40 Yes | 4 No |
Post New Answer View All Answers
What is goto statement in perl?
Explain splicing of arrays?
What does cgi program store?
What is the purpose of redo statement?
Write a program to decode the data in the form using cgi programming
Which functions in perl allows you to include a module file.
What does theβ$_β symbol mean?
You want to empty an array. How would you do that?
What are the various perl data types based on the context?
Explain the meaning of subroutine?
Difference between the variables in which chomp function work ?
What are scalars?
What is use of β->β symbol?
How can memory be managed in Perl?
What is the different between array and hash in perl programming?