Subject: | Support strings in addition to importing constants |
I'd like to also allow using plain strings as constants instead of requiring the constants themselves. Being able to do:
use Mac::FSEvents;
my $fsev = Mac::FSEvents->new(
path => 'foo',
flags => [ "IGNORE_SELF", "FILE_EVENTS" ],
);
might be nice.
Alternatively, or additionally, I could also make it work like:
use Mac::FSEvents;
my $fsev = Mac::FSEvents->new(
path => 'foo',
no_defer => 1,
ignore_self => 1,
file_events => 1,
watch_root => 1,
);