in reply to Filesystem checking

Have you tried this?
use File::Spec; ($volume,$directories,$file) = File::Spec->splitpath( $path );
I don't know the internal implementation of it but it might be worth a try.

pelagic

Replies are listed 'Best First'.
Re: Re: Filesystem checking
by coec (Chaplain) on Apr 30, 2004 at 12:57 UTC
    I tried this on both AIX and Linux, $volume was '' on both. Worth a try, though...
      I was sorta guessing ... but now I looked into the code:
      For VMS, W32, Mac and OS2 '$volume' means something like drive e.g. 'C:'
      as for Unix its not implemented at all and always returns ''

      pelagic
        I would not say it's "not implemented". There is simply no such concept of a special volume part in a Unix filename (which is a good thing, IMHO).