V
Victor
1- create dir dd1
2- chdir to dd1
3- do things
4- chdir back to original dir
5- create dir dd2
6- chdir to dd2
7- do things
But, chdir to prev dir does not happen at step 4.
The second dir at step 5 is actually gets created
in dir dd1.
Here is the part of code:
$mydir = `pwd`;
&s1;
&s2;
sub s1 {
system "mkdir dd1";
chdir "dd1";
.....
.....
chdir $mydir;
}
sub s2 {
system "mkdir dd2";
chdir "dd2";
.....
.....
chdir $mydir;
}
Any help will be highly appreciated.
Thanks,
-V
2- chdir to dd1
3- do things
4- chdir back to original dir
5- create dir dd2
6- chdir to dd2
7- do things
But, chdir to prev dir does not happen at step 4.
The second dir at step 5 is actually gets created
in dir dd1.
Here is the part of code:
$mydir = `pwd`;
&s1;
&s2;
sub s1 {
system "mkdir dd1";
chdir "dd1";
.....
.....
chdir $mydir;
}
sub s2 {
system "mkdir dd2";
chdir "dd2";
.....
.....
chdir $mydir;
}
Any help will be highly appreciated.
Thanks,
-V