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


Please Help Members By Posting Answers For Below Questions

what is perl language?

504


What does cgi program store?

531


Which functions in Perl allows you to include a module file or a module and what is the difference between them?

521


What are the logical operators used for small scale operations? Explain them briefly.

533


Explain grooving and shortening of arrays?

700






Explain perl.

549


Explain chomp?

508


Explain chop?

531


What is boolean context?

542


Write a program that explains the symbolic table clearly.

524


Explain cpan?

526


Comment on array slicing and range operator

520


How to do comment in perl?

571


Explain ivalue in perl?

523


You want to read command-line arguements with perl. How would you do that?

494