| 1 | package Enum::Declare::Common::FileType; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.014; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | ▶ | use Enum::Declare; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | enum Type :Str :Type :Export { | ||
| 10 | File = "file", | ||
| 11 | Directory = "directory", | ||
| 12 | Symlink = "symlink", | ||
| 13 | Socket = "socket", | ||
| 14 | Pipe = "pipe", | ||
| 15 | Block = "block", | ||
| 16 | Char = "char" | ||
| 17 | 1 | }; | |
| 18 | |||
| 19 | 1 | 1; | |
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Enum::Declare::Common::FileType - File type constants | ||
| 24 | |||
| 25 | =head1 SYNOPSIS | ||
| 26 | |||
| 27 | use Enum::Declare::Common::FileType; | ||
| 28 | |||
| 29 | say File; # "file" | ||
| 30 | say Directory; # "directory" | ||
| 31 | say Symlink; # "symlink" | ||
| 32 | |||
| 33 | =head1 ENUMS | ||
| 34 | |||
| 35 | =head2 Type :Str :Export | ||
| 36 | |||
| 37 | File="file", Directory="directory", Symlink="symlink", Socket="socket", | ||
| 38 | Pipe="pipe", Block="block", Char="char". | ||
| 39 | |||
| 40 | =head1 AUTHOR | ||
| 41 | |||
| 42 | LNATION C<< <email@lnation.org> >> | ||
| 43 | |||
| 44 | =head1 LICENSE AND COPYRIGHT | ||
| 45 | |||
| 46 | Copyright 2026 LNATION. Artistic License 2.0. | ||
| 47 | |||
| 48 | =cut | ||