Perhaps you want to look at using chdir. In answers to your previous posts people have pointed you towards http://perldoc.perl.org, perhaps you would benefit from spending some time reading up on some of the basics. There is also the tutorials section of this site, which has plenty of good resources.