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:
check if directory exist and executable

 



digioleg54
User

Sep 30, 2016, 9:35 AM

Post #1 of 2 (1999 views)
check if directory exist and executable Can't Post

I can check if ( -d $dir)--it is directory exists.
But how can I check if directory executable?


FishMonger
Veteran / Moderator

Sep 30, 2016, 4:17 PM

Post #2 of 2 (1989 views)
Re: [digioleg54] check if directory exist and executable [In reply to] Can't Post


Code
if ( -x $dir)

http://perldoc.perl.org/functions/-X.html

 
 


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

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