Not a HASH reference at /root/backup/backswitch.pl line 20.
foreach $i ($sftp->ls(".")){ $fname=$i->{filename};
As per the documentation, $sftp->ls returns a reference to a list, not a list.
In reply to Re: Modifying Script From Net::SFTP to Net::SFTP::Foreign
by hippo
in thread Modifying Script From Net::SFTP to Net::SFTP::Foreign
by CaptainK9
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |