ftp from windows to unix using a perl script on unix machine

i need to ftp a file from windows to a unix machine by executing a sript(perl/shell/php) from that unix machine.i can also use HTML and javascript to build forms.

if you are planning to use Perl, CPAN module Net::FTP would be helpful

i tried that NET::FTP..but its showing error in connecting

what's the error message?