I added the following right after opndir line:
chdir DH, "$dir" or die "Couldn't change to that directory $dir: $!";and it works correctly now.Thanks for help.
In reply to Re^2: Perl script does not work on other directories?
by Anonymous Monk
in thread Perl script does not work on other directories?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |