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

Tricky question. Try $stat[2] instead of $stat[1] if you're initializing @stat with @stat = stat($filename).

Replies are listed 'Best First'.
Re^2: POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux
by isync (Hermit) on Oct 05, 2009 at 18:04 UTC
    As you already rightfully assumed: I in fact use a customized @stat, where mode is actually $stat[1] in contrary to standard @stat = stat($file). I omitted that... sorry.