How that polymorphism is achieved is irrelevant. '+' will do the right thing when handed varying types. The fact that '+' imposes scalar context upon its operands and @foo in scalar context is "$#foo + 1" doesn't change the fact that it's '+' which is the agent of the context conversion.
In reply to Re^3: Static typing is mostly a waste of time
by dragonchild
in thread Static typing is mostly a waste of time
by johnnywang
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |