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,
printsprint chomp($x = "A string\n"),"\n"; print "|$x|\n"
1 |A string|
|
|---|