This is because
chomp() modifies the arguments it is passed, so
$/ is removed inplace (which would be
\n in your case). The return you're seeing is the total number of characters removed from all it's arguments (perhaps you're calling it in an iterative context?).
HTH
_________
broquaint