print "nothing\n" if not -e $filename; print "directory\n" if -d $filename; print "file\n" if -f $filename;