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: General Discussions: General Questions: Re: [wajdi] reload the list of disks at RunTime: Edit Log



FishMonger
Veteran / Moderator

Aug 3, 2016, 12:06 PM


Views: 5073
Re: [wajdi] reload the list of disks at RunTime

Your code won't compile due to the missing { } braces. When posting code, you should always copy/paste your actual code instead of retyping it.

Based on that code snippet, it appears that you need to reverse the logic of the conditional.

Code
if (! -d "G:") { die "G: not found";  }

or

Code
unless (-d "G:") { die "G: not found"; }

or

Code
die "G: not found" unless -d "G:";



(This post was edited by FishMonger on Aug 3, 2016, 12:08 PM)


Edit Log:
Post edited by FishMonger (Veteran) on Aug 3, 2016, 12:08 PM


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

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