I figured you'd say that. I hear ya when it comes to perl not "promising" any particular return value. But can you name any example where !!$test doesn't return 1 or ''/0 currently? And do you really think it's likely that's going to change?
Obviously, for safety sake with future versions, it probably is better to rely on documented return values instead of assumed current implementation. However, it seems a little silly to me to be that wary of something so basic changing. I wouldn't have been the only person to occasionally take advantage of observed behavior instead of only relying on documented. To future ill or not.
In reply to Re^5: Complex conditional sort
by wind
in thread Complex conditional sort
by Zhris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |