The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::FTP::Tiny - minimal FTP client

SYNOPSIS

        use Net::FTP::Tiny qw(ftp_get);

        $data = ftp_get("ftp://ftp.iana.org/tz/data/iso3166.tab");

DESCRIPTION

This module provides an easy interface to retrieve files using the FTP protocol. The location of a file to retrieve is specified using a URL. IPv6 is supported, if the optional module IO::Socket::IP is installed. Only retrieval is supported, not storing or anything more exotic.

FUNCTIONS

ftp_get(URL)

URL must be a URL using the ftp scheme. The file that it refers to is retrieved from the FTP server, and its content is returned in the form of a string of octets. If any error occurs then the function dies. Possible errors include the URL being malformed, inability to contact the FTP server, and the FTP server reporting that the file doesn't exist.

BUGS

IPv6 support is largely untested. Reports of experiences with it would be appreciated.

SEE ALSO

IO::Socket::IP, Net::FTP, Net::HTTP::Tiny

AUTHOR

Andrew Main (Zefram) <zefram@fysh.org>

COPYRIGHT

Copyright (C) 2012 Andrew Main (Zefram) <zefram@fysh.org>

LICENSE

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.