Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux

by afoken (Chancellor)
on Oct 06, 2009 at 16:40 UTC ( [id://799526]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print "$somename is a real directory" if -d($somename);
    print "$somename is a real plain file" if -f($somename);
    
  2. or download this
    # way 1: explicit test
    
    ...
    
    lstat($somename);
    print "$somename is a real plain file" if -f _;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://799526]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-04-19 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found