chomp() does not remove all trailing record separators, just one. The special case is paragraph mode where all trailing newlines are removed. When in fixed-length record mode ($/ = \$some_int) or slurp mode ($/ = undef) chomp() does nothing. All these special cases aren't handled by &chimp.
Also, the return value isn't analoguous with chomp()'s.
ihb
See perltoc if you don't know which perldoc to read!
In reply to Re^3: Chop command that removes the first character
by ihb
in thread Chop command that removes the first character
by mosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |