in reply to Diff between file and directory

perldoc -f -X, perldoc -f stat