What is the difference between chop & chomp functions in perl?
Answer Posted / deepesh
chop() is used to remove last character where chomp() is
only remove new line if its existing or white space.
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How to create a package?
Which functions in perl allows you to include a module file. State their differences.
Does Perl have reference type?
What are the advantages and disadvantages of perl language?
Why to use perl scripting?
How do find the length of an array?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?
Explain gmtime() function in perl?
What does `$result = f() .. g()' really return?
Differentiate between c++ and perl.
How can you replace the characters from a string and save the number of replacements?
Define operators used in perl?
What does perl do in linux?
How do I sort a hash by the hash value?
What is the tk module?