-d takes a string parameter (possibly in $_) and returns true if the string represents the path to a directory. -f does the same but tests for the path being that of a file. These and a slew of other related functions are described in perlfunc at the start of the alphabetical listing of functions.
In reply to Re: What are -d and -f for?
by GrandFather
in thread What are -d and -f for?
by tej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |