The chomp function works in combination with the $/ variable when reading from filehandles.
The $/ variable is the input record separator that is attached to the records you read from a filehandle and it is by default set to the newline character "\n".
The chomp function works by removing the last character from a string only if it matches the value of $/.
See Chomp
In reply to Re: chomp it chomp it good
by vinoth.ree
in thread chomp it chomp it good
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |