But, here's another question. A value is not converted when boolean context is needed, OK. But what if it is a value that has both numeric and string "slots" filled? Which does it use? My guess is it looks at the string, so that "0 but true" is still true even after it's been used in a numeric expression (filling the number slot with 0).
—John
In reply to Re: (tye)Re2: Why isn't "0\n" false?
by John M. Dlugosz
in thread When does $_ get used?
by elbie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |