in reply to Re^2: Chop command that removes the first character
in thread Chop command that removes the first character

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!