I am trying by storing all the vobtags in one array and calling each tag by using loop,in that i am using chdir function after that i am executing the below command
I'm not sure if I understand your question, let alone if it is actually a Perl question at all. But if you have, say, a @files array which contains a list of filenames complete of full paths, then what's wrong with the following? (Or some obvious and perhaps better written modification of it.)
use File::Basename;
use Cwd 'abs_path';
# ...
for (@files) {
my ($name, $path)=fileparse $_;
chdir abs_path $path;
do { Something::with($name) };
}
|