Here is a pure perl solution, that should work:
$ENV{RSYNC_PASSWORD} = $passwd; [download]
In reply to Re: setenv system call by busunsl in thread setenv system call by dnickel