First, to report bugs on Net::SFTP::Foreign it's better to send an email directly to me (the author) or use the CPAN bug tracking system. Also, PerlMonks is a better place to get help on any Perl topic.
Regarding your problems, which perl version are you using? can you send me the output from the "perl -V" command so I can reproduce it myself?
And from the connection failing problem, try passing "-v" inside the "more" optional arg:
(0)
]
