By file type, do you mean if it's a directory, plain file, and so on? You could get that out of the mode, I guess, but the file test operators do that too and they are much more clear to the guy who has to figure out what you are doing.
See the -X entry in perlfunc. It's at the top of the alphabetical list of functions.
Good luck :)
In reply to Re: Extract file type from stat() mode
by brian_d_foy
in thread Extract file type from stat() mode
by joe_s
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |