in reply to how to get the parent directory name?
I just put on cpan a module that might be of use with this kind of thing. It's File::PathInfo
With it you could quickly get the file's location (the parent directory for a file)..
use File::PathInfo; my $i = new PathInfo; $i->set('/absolute/path/to/your.mp3'); my $parent_directory = $i->abs_loc;
|
|---|