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|
In reply to Re: Chomp Anomaly?
by ariels
in thread Chomp Anomaly?
by arunhorne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |