App-SimpleBackuper
view release on metacpan or search on metacpan
local/lib/perl5/Net/SFTP/Foreign/Compat.pm view on Meta::CPAN
seek tell eof write flush read getc lstat stat
fstat remove rmdir mkdir setstat fsetstat
close closedir readdir realpath readlink
rename symlink abort get_content join glob
rremove rget rput error die_on_error );
for my $method (@forbidden) {
my $super = "SUPER::$method";
no strict 'refs';
*{$method} = sub {
unless (index((caller)[0], "Net::SFTP::Foreign") == 0) {
croak "Method '$method' is not available from " . __PACKAGE__
. ", use the real Net::SFTP::Foreign if you want it!";
}
shift->$super(@_);
};
}
}
sub new {
my ($class, $host, %opts) = @_;
( run in 0.494 second using v1.01-cache-2.11-cpan-a3c8064c92c )