in reply to What are -d and -f for?
-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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: What are -d and -f for?
by tej (Scribe) on Aug 13, 2011 at 06:19 UTC |