if(-d -r -w -x -R -W -X "directory") {
See perlfunc. There's an example of how to do this at the bottom of the section that describes the -X functions. (Hint: pay close attention when you see _ described.)
In reply to Re: or operator not working at checking directories
by dws
in thread or operator not working at checking directories
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |