Why not simply:
... use constant THRESHOLD => 98.0; ... if ($consumption > THRESHOLD) { # do something }
In reply to Re: Using dynamic operators in an if() statement
by GrandFather
in thread Using dynamic operators in an if() statement
by captkirk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |