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
There are two types of eval statements i.e. Eval expr and eval block. Explain them.
what is Chop & Chomp function does?
How do I read command-line arguments with Perl?
Does Perl have reference type?
What is the use of -t?
How interpreter is used in perl?
What is stdin in perl?
What happens in dereferencing?
Write a program to download the contents from www.perlinterview.com/answers.php website in Perl.
How can you call a subroutine and identify a subroutine?
What is hash?
What is perl? What is the basic command to print a string in perl?
How to create a package?
Can you add two arrays together?
Explain cpan?