NAME

Enum::Declare::Common::Permission - Unix permission bits and masks

SYNOPSIS

use Enum::Declare::Common::Permission;

# Flags
my $rwx = Read | Write | Execute;  # 7
my $rw  = Read | Write;            # 6

# Mask constants for chmod-style values
my $mode = OwnerRead | OwnerWrite | OwnerExecute
         | GroupRead | GroupExecute
         | OtherRead | OtherExecute;  # 0755

ENUMS

Bit :Flags :Export

Execute=1, Write=2, Read=4. Combinable with bitwise OR.

Mask :Export

OwnerRead=256, OwnerWrite=128, OwnerExecute=64, GroupRead=32, GroupWrite=16, GroupExecute=8, OtherRead=4, OtherWrite=2, OtherExecute=1.

AUTHOR

LNATION <email@lnation.org>

LICENSE AND COPYRIGHT

Copyright 2026 LNATION. Artistic License 2.0.