in reply to svn sync with perlscript
What is the message that is displayed?
I suspect that, at the point this hook will be running, you cannot issue a svnsync command because, well, “that would run the hook.” The pre-commit process is already begun.