The addition operator operators on scalars, not numeric values; you can pass it a string if you so desire. The operator must coerce the string into a number in order to do the addition.
From perlop:
Binary "+" returns the sum of two numbers.
The operator is monomorphic. Again, how is using the binary numeric addition operator not explicit about the intention to treat its operands in a numeric fashion?
In reply to Re^13: Strong typing and Type Safety.A multilanguage approach (implicit)
by chromatic
in thread Strong typing and Type Safety.A multilanguage approach
by nikosv
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |