1. In documentation is clearly wrote, that Fcntl::S_IFMT is a function and should be called as Fcntl::S_IFMT($mode).
2. If you write:
you will get 0, that is wrong, because "/tmp" is a directory.printf "%s\n", (stat '/tmp')[2] & Fcntl::S_IFMT & Fcntl::S_IFDIR ? 1 : + 0;
In reply to Re^2: Unexpected Fcntl::S_IFLNK behavior
by zdm
in thread Unexpected Fcntl::S_IFLNK behavior
by zdm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |