SPUG: perl newbie with annoying little issue ...

ced at carios2.ca.boeing.com ced at carios2.ca.boeing.com
Tue Nov 28 16:38:07 CST 2000


> can anyone tell me how to determine if a file is a directory or a leaf? (i'm 
> looking for something similar to java's "isDirectory()" method in the File 
> class)

perldoc perlfunc

There's a full listing of the file test operators there
including -d.

hth,
--
Charles DeRykus

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
  Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/





More information about the spug-list mailing list