The point is that now you can compare numbers even if a calculation yields infinity: (try $exponent = 10000)
if (2 ** $exponent > $threshold) {
do_sth();
}
without getting a "non-numeric value" error. See http://bumppo.net/lists/fun-with-perl/2001/06/msg00031.html
In reply to Re: Infinity recognized as number
by crenz
in thread Infinity recognized as number
by fglock
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |