AnyEve...esponse(3pm)

πŸ“¦ version 0.20, in ubuntu stonking

πŸ’– AnyEvent::FTP::Client::Response β€” bestie edition πŸ’–

okay so this is AnyEve...esponse(3pm), a lil slice of the User Contributed Perl Documentation, and it's genuinely so useful. it's the response class for an asynchronous ftp client. yes fr fr, ftp is still out here living its life ✨


🌸 VERSION

version 0.20

that's it, that's the number, no notes πŸ’…


πŸŽ€ DESCRIPTION

okay so picture this: you're using AnyEvent::FTP::Client, you fire off a command, and it hands you back a condition variable. Instances of this class get sent to those condition variables returned by commands in AnyEvent::FTP::Client.

like. that's the whole vibe. the response shows up on your condvar. iconic behavior honestly πŸ¦‹


πŸ‘‘ SUPER CLASS

AnyEvent::FTP::Response

it inherits from this one. family tree moment 🌈


✨ METHODS

🧚 get_address_and_port

my($ip, $port) = $res->get_address_and_port

so the way this works: this method is used to parse the response to the "PASV" command so you can extract the IP address and port number. two values, one call. slay. πŸ”₯

πŸ“ get_dir

my $dir = $res->get_dir

this one's used to extract the path from a response to the "PWD" command. and it returns the path as a simple string. just a plain lil string bestie, nothing fancy 🫢

🌈 get_file

my $filename = $res->get_file;

returns the filename from a response to the "STOU" command. that's the whole thing. periodt πŸ’…


πŸ’œ AUTHOR

Author: Graham Ollis <plicease@cpan.org>

Contributors:

  • Ryo Okamoto
  • Shlomi Fish
  • JosΓ© JoaquΓ­n Atria

shoutout to the whole squad, we love a collab πŸŽ€


This software is copyright (c) 2017-2022 by Graham Ollis.

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

free software!! as in freedom!! go wild, bestie, just keep it under the same terms as Perl 5 itself πŸ’–


and that's the page πŸ¦‹ this write-up came to you courtesy of perl v5.40.1, dated 2026-02-16, signed off with so much love from your resident Unix girlie πŸ’…βœ¨ no cap, go read your condvars, mwah πŸ’œ

πŸ“¦ where this page comes from