IO::All::SFTP - use sftp from IO::All


IO-All-SFTP documentation Contained in the IO-All-SFTP distribution.

Index


Code Index:

NAME

Top

IO::All::SFTP - use sftp from IO::All

SYNOPSIS

Top

Here's a quick example of how to use this:

    use IO::All;
    # print the contents of the remove file
    $test < io('sftp://guest:guest@asdf/home/guest/test');
    print $test;

For more information on the interface, see the IO::All POD.

ACKNOWLEDGEMENTS

Top

I did not write any of the code that this module uses. All of the code is in LWP::Protocol::sftp and IO::All::LWP. This module just tells IO::All::LWP to use LWP::Protocol::sftp.

So kudos to Salvador FandiƱo for LWP-Protocol-sftp and Ivan Tubert-Brohman and Brian Ingerson for IO-All-LWP.

BUGS

Top

One bug that I've found while testing is that if you don't have the host you are connecting to in your known_hosts, it will just hang.

COPYRIGHT & LICENSE

Top

SEE ALSO

Top

IO::All, IO::All::LWP


IO-All-SFTP documentation Contained in the IO-All-SFTP distribution.

package IO::All::SFTP;

use warnings;
use strict;

require LWP::Debug;
use IO::All::LWP '-base';

our $VERSION = '0.01';

const type => 'sftp';

sub sftp { my $self=shift; $self->lwp_init(__PACKAGE__, @_) }

1;