Subject: | documentation bug |
The bitmasks section includes example code
use enum qw(BITMASK: MY_ FOO BAR CAT DOG);
and then uses MY_DOG; but if there's a space between BITMASK: and MY_, that's not really right, is it?
In simplified form:
C:\usr\local\share\PassThru\perl>perl -le "use warnings;use strict; use enum qw(BITMASK: MY_ FOO BAR CAT DOG); print MY_DOG;"
Name "main::MY_DOG" used only once: possible typo at -e line 1.
print() on unopened filehandle MY_DOG at -e line 1.
C:\usr\local\share\PassThru\perl>perl -le "use warnings;use strict; use enum qw(BITMASK:MY_ FOO BAR CAT DOG); print MY_DOG;"
8
Shouldn't the docs really say
use enum qw(BITMASK:MY_ FOO BAR CAT DOG);
with no space?