File::Stat::ModeString is a Perl5 module provides a few functions for conversionbetween binary and literal representations of file mode bits, including file type. WWW: https://metacpan.org/release/File-Stat-ModeString