SERVICE_STOPPED and SERVICE_STARTING may be constants:
use strict; use warnings; use constant SERVICE_STARTING => 1; use constant SERVICE_STOPPED => 0;
Constants in Perl are just a sort of subroutine with special optimizations. Thus, they follow subroutine syntax rules. We don't get concerned when we see 'shift' as a bare word.
Dave
In reply to Re: Barewords and equality tests
by davido
in thread Barewords and equality tests
by punkish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |