in reply to Re: Having problems with addition in sub
in thread Having problems with addition in sub
Trailing (and leading, for that matter) whitespace is ignored (with no warning) when you use a string in numeric context, so there's no need for the chomp.