Ive forgot to mention that im also limited to perl 5.12.4
when i try to start the script it gets to "my $ssh = Net::OpenSSH->new( $host, user=>$user, port=>$port, timeout=>30, key_path=>$key );" and afterwards nothing happen. I don't get an error or anything else, the print command afterwards doesnt happen either.