chop is used to remove the last character,chomp function removes only line endings.
chop removes the last character and returns the character chopped. Chomp removes any trailing string that corresponds to the current value of $/ and returns number of characters removed.
In reply to Re: chop and chomp
by manoj_speed
in thread chop and chomp
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |