In the sorted case example, you are right. But having the correct code as in the example makes a change from 0 to -1 or 999 as default a very easy edit, which is not to say when using ||.
The same goes if one were dealing with char data and used $foo || ''
Why do you want to change a perfectly valid string "0" to the empty string "". I seldom want such a change for defaults.
In reply to Re^6: Make $^V and "my" implicit
by Tux
in thread Make $^V and "my" implicit
by gunzip
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |