what exactly is the application/motivation/benefit for the way perl numifies strings?
DB<9> $x="abc" DB<10> p 5 +$x 5 DB<11> $x="2abc3" DB<12> p 5 +$x 7
BTW: This behaviour seems only to be documented for unary - in perlop
Isn't this behaviour mainly hiding ugly bugs?DB<18> $x="ab2c3" DB<19> p -$x -ab2c3 DB<20> $x="6ab2c3" DB<21> p -$x -6
Cheers Rolf
In reply to Numification of strings by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |