http://qs321.pair.com?node_id=96498

footbinc has asked for the wisdom of the Perl Monks concerning the following question:

Im having a small problem with Net:FTP
my $ftp=Net::FTP -> new($hostname) or die ("Connect failed"); my $filename=$wrname; print "Connected to Website\n"; $ftp->login($user,$password) or die ("cant Login"); $ftp->binary or die ("cant Binary"); $ftp->hash or die ("cant Hash"); $ftp->cwd("public_html") or die ("cant Change Dir"); $ftp->cwd("jobs") or die ("cant Change Dir2"); $ftp->put($filename) or die ("cant Upload"); print "File Uploaded"; $ftp->quit;
This keeps returing a error, Bad Remote File Name <name of file>. Any ideas?