Subject: | Can't locate object method "_clear_error" |
Date: | Wed, 24 Oct 2012 20:11:37 +0000 |
To: | "bug-Net-SFTP-Foreign [...] rt.cpan.org" <bug-Net-SFTP-Foreign [...] rt.cpan.org> |
From: | Michael Wilder <MWilder [...] celticintl.com> |
Error message:
Can't locate object method "_clear_error" via package "Net::SFTP::Foreign" at /usr/lib/perl5/site_perl/5.8.8/Net/SFTP/Foreign.pm line 1273.
I received error message during a put sequence when it was trying to overwrite a file.
my %put_params = (
'atomic' => 0,
'cleanup' => 1,
'overwrite' => 1
);
if ( ! $sftp->put( $file, $file, %put_params ) ) {
I changed line 1273 fro "_clear_error" to "_clear_error_and_status" and that fixed the problem. Is this the correct fix or am I missing a library?
Thanks,
Mike Wilder
Celtic International
$ perl -v
This is perl, v5.8.8 built for x86_64-linux-thread-multi
$ cat /etc/redhat-release
Scientific Linux SL release 5.4 (Boron)
$ uname -a
Linux tinrhdev1.celticchicago.local 2.6.18-274.17.1.el5 #1 SMP Tue Jan 10 16:13:44 EST 2012 x86_64 x86_64 x86_64 GNU/Linux