in reply to Dissecting a complete pathname to a file

Take a look at splitpath in File::Spec


DWIM is Perl's answer to Gödel
  • Comment on Re: Dissecting a complete pathname to a file