You should definitely use another file transfer method other than Windows shares. installing an SSH server and using Net::SSH:Perl or Net::OpenSSH would be the best way to do it, but if you're looking for quick, insecure and dirty, you should at least use Net::FTP.