IO::All::FTP(3pm)
π IO::All::FTP π
okay bestie, so you know that page IO::All::FTP(3pm)? the one from the User Contributed Perl Documentation era? yeah. that one. it's giving "tiny module, big vibes" and honestly we're obsessed.
β¨ NAME β¨
IO::All::FTP β it extends IO::All to FTP URLs π¦ like that's literally its whole thing and it eats every time.
πΈ SYNOPSIS πΈ
no notes, just look at her:
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:secret@example.org/xyz');
$content < io('ftp://example.org/xyz')->user('me')->password('secret');
two whole ways to do the password thing?? periodt. pick whichever one is your main character today π
π DESCRIPTION π
so this module extends IO::All so it can handle FTP URLs. and here's the tea, bestie: you do NOT have to use it explicitly. it gets autoloaded by IO::All any time IO::All sees something that looks like an FTP URL. it just shows up. no invite needed. iconic behavior fr fr β¨
π METHODS π
this is a subclass of IO::All::LWP, okay? and the only new method is "ftp".
- you can use
"ftp"to create a blankIO::All::FTPobject π«Ά - or it can also take an FTP URL as a parameter
- and ngl, in most cases it's simpler to just call
io('ftp//example.com'), which calls the"ftp"method automatically for you π
lowkey convenient, highkey slay.
π OPERATOR OVERLOADING π
same operators from IO::All, bestie β nothing new to memorize:
<GETs an FTP URL>PUTs to an FTP URL
that's it. that's the whole vibe check. π
β SEE ALSO β
go read these too, they're the friend group:
IO::All::LWPIO::AllLWP
π¦ AUTHORS π¦
Ivan Tubert-Brohman <itub@cpan.org> and Brian Ingerson <ingy@cpan.org> β absolute legends, we stan π₯°
πΈ COPYRIGHT πΈ
Copyright (c) 2007. Ivan Tubert-Brohman and Brian Ingerson. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
π okay that's the whole page, bestie! this lil cutie is living in perl v5.32.0, dated 2021-01-04, under the User Contributed Perl Documentation umbrella π thanks for reading, mwah π
π¦ where this page comes from
- debian bookworm: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libio-all-lwp-perl 0.14-2.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms