Hmm, it seems thats depend on the position on whicht test.pl will bes startet, not on the position, doall.log will be saved.
~ = home (uncrypted, local)
~/cmd = crypted,linked to Q:\cmd
cd ~/cmd
test.pl wrote doall.log corrupts
cd ~/cmd
test.pl wrote ../doall.log (in ~) corrupts
cd ~
cmd/test.pl wrote doall.log ok
cd ~
cmd/test.pl wrote ../doall.log ok