Given a file name (possibl a path to it given as well), is there a way
to get or extract the name of the directory the file is in?
If you know the location of the file (ie. the path), you can use
File::Basename to extract only the directory part.
If you don't know where the file is (ie. you don't know that path), you
need to search for it. Take a look at File::Find and File::Find::Rule.
--
Tore Aursand <
[email protected]>
"Anyone who slaps a 'this page is best viewed with Browser X'-label on
a web page appears to be yearning for the bad old days, before the
web, when you had very little chance of reading a document written on
another computer, another word processor or another network." -- Tim
Berners-Lee, July 1996