I keep wanting to think of "running" as "1" and "not running" as "0"; Which is causing me to have trouble with
sub is_running, which, if I read it correctly, returns "0" if running. Whereas
sub init sets an initial widget state of "0" and
sub set_running sets them to "1"; However
sub replace sets "out" to "0" ("out" to me indicating "out of the pool" i.e. running) and "in" (as in, back in the garage so to speak, or not running anymore) to "0";
So if is_running returns "0" if foo is running, I would do something like:
if (is_running('foo')){ # because "1" means "no"
set_running('foo');
}
which seems so unnatural that I'm sure I must be missing the point somewhere.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.