|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re^3: Most useless function.by Anonymous Monk |
| on Feb 16, 2006 at 12:42 UTC ( [id://530711]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
The point of a ispoweron() function is to detect whether the main power source is on, or whether you're running under backup power (UPS, generator, etc).
Once you detect that you're running under UPS power, you can then do a controlled shutdown of the system before power runs out. It's much less useless than a JAPH, which is a complicated way of writing something that could be written in a straightforward way.
In Section
Meditations
|
|
||||||||||||||||||||||||