answersLogoWhite

0

What does chomp do in perl?

Updated: 12/8/2022
User Avatar

Wiki User

14y ago

Best Answer

Most commonly it's used to remove the newline character from the end of a string or an array of strings. If the newline character isn't there, then nothing is done to the string.

There are other details involved in what chomp does, but mostly that is what it is used for.

For instance you can change which character is considered the be the newline character. If you want to know more, I would suggest reading the documentation.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does chomp do in perl?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How does one use the Perl chomp function?

The Perl Chomp function is a programming function that remove the "newline" character at the end of the string. One can use the Perl Chomp function to remove any character that has the same value as the current one.


how to eat food?

chomp chomp chomp


How do you use chomp in sentence?

I will chomp on my apple


to bite down hard with your teeth?

chomp. chomp is the answer


Was George Washington the first one to wear false teeth?

yes, to be exact.... they were wooden! lol.... CHOMP CHOMP CHOMP!


Richard walker holds the record for the chomp title by chewing 135 sticks of gum for the longest time How long did he chomp?

8 hours. *chomp chomp* heehee@0_o@--MC


Who is chain chomp?

Chain Chomp is a weapon on the Mario Kart Games.


How do you get chomp chomp?

All you have to do is plant any three dragon blossoms.


What part of speech is chomp?

Chomp is an action word, it's a Verb


When did Chomp - video game - happen?

Chomp - video game - happened in 1991.


When was Chomp - video game - created?

Chomp - video game - was created in 1991.


How do you release Chomp Chomp in super Mario 64?

ground pound 3 times on the chain chomp's red coin way and then you can get the easy star