in reply to Extract file type from stat() mode
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 :)
|
|---|