IO::All::FTP(3pm)

IO::All::FTP3pm

Extends io::all to ftp urls

Usage

    use IO::All;
    "hello world\n" > io('ftp://localhost/test/x');  # save to FTP
    io('ftp//example.org/pub/xyz') > io('xyz');      # GET to file
    # two ways of getting a file with a password:
    $content < io('ftp://me:[email protected]/xyz');
    $content < io('ftp://example.org/xyz')->user('me')->password('secret');

Overview

This module extends IO::All for dealing with FTP URLs. Note that you don't need to use it explicitly, as it is autoloaded by IO::All whenever it sees something that looks like an FTP URL.

Methods

This is a subclass of IO::All::LWP. The only new method is "ftp", which can be used to create a blank IO::All::FTP object; or it can also take an FTP URL as a parameter. Note that in most cases it is simpler just to call io('ftp//example.com'), which calls the "ftp" method automatically.

Operator overloading

The same operators from IO::All may be used. < GETs an FTP URL; > PUTs to an FTP URL.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–9
  2. 10
  3. 11–13

Authors

Ivan Tubert-Brohman <[email protected]> and Brian Ingerson <[email protected]>

From libio-all-lwp-perl 0.14-2.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.