looks like perl5 string doesn't support operations of arithmetic but self-increment/decrement. My question is how override operator so as to fit on string? and take a look third statement, IMHO, ab11 is more reasonable. Any help?perl -e "$a = qq(ab); $a + 3; print $a;" # ab perl -e "$a = qq(ab1); $a ++; print $a;" # ab2 perl -e "$a = qq(ab1); for(1..10) {$a ++;} print $a;" #ac1
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction
In reply to string operations of arithmetic by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |