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:
How to read ! -d $vardir? pls help

 



WildWestCA
New User

Mar 4, 2009, 11:56 AM

Post #1 of 3 (248 views)
How to read ! -d $vardir? pls help Can't Post

I stumble upon on this piece of code and have no idea what it does...



if ( ! -d $vardir);

pls help...


KevinR
Veteran


Mar 4, 2009, 12:27 PM

Post #2 of 3 (247 views)
Re: [WildWestCA] How to read ! -d $vardir? pls help [In reply to] Can't Post

it says:

if (not a directory $vardir)

-d is a file test operator and ! just means 'not'.
-------------------------------------------------


WildWestCA
New User

Mar 4, 2009, 2:48 PM

Post #3 of 3 (244 views)
Re: [KevinR] How to read ! -d $vardir? pls help [In reply to] Can't Post

Thank you Kevin

You are the best!!!

Serge

 
 


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

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