The stupid question is the question not asked | |
PerlMonks |
check for directory no mather what case (linux)by Anonymous Monk |
on Oct 19, 2007 at 18:57 UTC ( [id://646051]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I want to check if a directoy name exists.
/somedir/directory For example want to check if "directoy", "Directory", "diRECtory" or "direCTORY" ....... exists It's so i wont create the "directory" if "DiRectorY" already exists. Will only be true on same-case directory's Is there someway i can check it like a regex =~ /directory/i i can use "find" to create a dir list and check if it exists, but i thought that there might be a cleaner/easier way. Thanks, Milo
Back to
Seekers of Perl Wisdom
|
|