in reply to Chomp Anomaly?

chomp modifies its arguments, but returns the number of characters removed from its arguments. What you mean by "some other binary" is unclear; in any case, as per documentation,

print chomp($x = "A string\n"),"\n"; print "|$x|\n"
prints
1
|A string|