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


in reply to Modifying Script From Net::SFTP to Net::SFTP::Foreign

Run this script and post the result to show module versions

#!/usr/bin/perl use strict; use Net::SFTP; use Net::SFTP::Foreign; use Net::SSH::Perl; printf "%s %s\n",$^O,$^V; printf "Net::SFTP %s\n",$Net::SFTP::VERSION; printf "Net::SFTP::Foreign %s\n",$Net::SFTP::Foreign::VERSION; printf "Net::SSH::Perl %s\n",$Net::SSH::Perl::VERSION;
"Not a HASH reference at /root/backup/backswitch.pl line 20."

Which is line 20 ?

poj

Replies are listed 'Best First'.
Re^2: Modifying Script From Net::SFTP to Net::SFTP::Foreign
by CaptainK9 (Initiate) on Apr 10, 2019 at 18:36 UTC

    linux v5.10.1

    Net::SFTP 0.10

    Net::SFTP::Foreign 1.81

    Net::SSH::Perl 1.37