Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Opening a Directoryby FoxtrotUniform (Prior) |
on Jan 19, 2002 at 01:48 UTC ( [id://139961]=note: print w/replies, xml ) | Need Help?? |
Can you show me how to validate the existence of a directory? You want the file test operators, specifically -d. If the directory name has a space in between, what should I do? Nothing special, as long as you have the whole dir name instead of just the first word. And how to capture all the files under a directory? opendir, readdir, closedir. And God bless all Monks! Which one? --:wq
In Section
Seekers of Perl Wisdom
|
|