You might want to have a look at File::Basename, a module that is part of the standrad distribution.
It allows to extract the file name, file extension and directory name of a given path. This is what you want to achieve, I think.
Hope this helps, -gjb-
In reply to Re: Get Parent Directory
by gjb
in thread Get Parent Directory
by Ananda
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |