Where do we require ‘chomp’ and what does it mean?



Where do we require ‘chomp’ and what does it mean?..

Answer / Sakshi Bhardwaj

'chomp' is used to remove the newline character from the end of a line. It's typically required when reading input from files or user input.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More CGI Perl Interview Questions

Explain grooving and shortening of arrays?

1 Answers  


What package you use to create a windows services?

1 Answers  


you are required to replace a char in a string and store the number of replacements. How would you do that?

1 Answers  


Show the use of sockets for the server and client side of a conversation?

1 Answers  


what are prefix dereferencer and list them out?

1 Answers  


What does Perl do if you try to exploit the execve(2) race involving setuid scripts?

1 Answers  


Demonstrate subroutines in perl with a simple example.

1 Answers  


What are the various uses of perl?

1 Answers  


What happens when you return a reference to a private variable?

1 Answers  


What is goto statement in perl?

1 Answers  


Which functions in perl allows you to include a module file.

1 Answers  


Which feature of Perl provides code reusability ? Give any example of that feature.

1 Answers  


Categories