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
List the files in current directory sorted by size ?
how to get back up from private character editor which is saved in the format of .udf
you are required to replace a char in a string and store the number of replacements. How would you do that?
What is the difference between exec and system?
You want to print the contents of an entire array. How would you do that?
How to convert strings into an array in perl?
Write a cgi program to show the header part?
What is the difference between perl list and perl array?
Explain the difference between "my" and "local" variable scope declarations. ?
What are arrays in perl?
Differentiate between arrays and list in perl.
What can be done for efficient parameter passing in perl?
Explain strftime() function in perl?
How can you use Perl warnings and what is the importance to use them?
In Perl, there are some arguments that are used frequently. What are that arguments and what do they mean?