Any changes to what is the current directory made while running perl disapear when perl ends.
in your perl script add
after theuse Cwd; print 'Cwd:'.getcwd."\n";
and you will see that you did move to that directory while perl was running.chdir($Dir);
In reply to Re^3: Help with exercise
by huck
in thread Help with exercise
by codeKnight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |