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;
In reply to Re: how to get the parent directory name?
by leocharre
in thread how to get the parent directory name?
by juro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |