Would someone mind telling me what I am doing wrong here please. I am trying to tie the SCP Expect module into a backup script I put together, but it keeps failing. I stripped out all but the SCP example code and it still generates an error from the module. I verified my login, directory and filenames were correct by sending the file manually.
I am running Perl v5.8.0, Expect-1.14, and Net-SCP-Expect-0.10
my $host = "host.whatever";
my $user = "josem";
my $pwd = "password";
my $scp = Net::SCP::Expect->new(host=>$host,user=>$user,password=>$pwd);