Let me correct you. I'm getting 2 as the output on Linux, too. That's because `$'` is not a valid variable name in the shell (at least in bash which I use).
In reply to Re^3: Off by one key... or yet another example of why strict and warnings are always a good idea (even for "one-liners")
by choroba
in thread Off by one key... or yet another example of why strict and warnings are always a good idea (even for "one-liners")
by atcroft
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |