Why are you using chdir with File::chdir?
Try using it like:
... use File::chdir; $CWD = '/usr/bin'; # Oh hey, in /usr/bin/ ...
Or
... use File::chdir; $CWD = '/home/me/perl'; # Now in /home/me/perl { local $CWD = '/home/you/python'; # Now in /home/you/python ... } # Back in /home/me/perl ...
Hope this helps!
In reply to Re: using change directory within perl script
by bms
in thread using change directory within perl script
by cburger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |