|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: how to know if a path exists or notby kennethk (Monsignor) |
| on Oct 11, 2012 at 15:13 UTC ( #998474=note: print w/ replies, xml ) | Need Help?? |
|
File test operations are cataloged in -X. In particular, -e will tell you if something exists at that path, and -f and -d will test if a given string corresponds to a file and a directory respectively. #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||