CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
I don't know how to ...

 



adolfo
Novice

Aug 28, 2001, 1:07 PM

Post #1 of 3 (546 views)
I don't know how to ... Can't Post

Hi people!
I need to know how to check if a directory does exist or not ....
If directory doesn't exist an error will display saying: "Directory does not exist!"
Please help me !
Thanx =)


~Adolfo~


adolfo
Novice

Aug 28, 2001, 1:13 PM

Post #2 of 3 (545 views)
Re: I don't know how to ... [In reply to] Can't Post

I found the solution =)
I used -d
thanx anyway

~Adolfo~


widexl
Novice

Aug 29, 2001, 1:55 AM

Post #3 of 3 (539 views)
Re: I don't know how to ... [In reply to] Can't Post

try:

if (-e "/your/dir/") {print "Directory exist"}



 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives