Rex::C...ownload(3pm)

πŸ’– Rex::Commands::Download πŸ’–

okay bestie, welcome to Rex::Commands::Download β€” straight out of the User Contributed Perl Documentation collection, and yeah the page title is literally Rex::C...ownload(3pm) because someone let the truncation cook, but we move ✨


🌸 NAME 🌸

Rex::Commands::Download β€” download remote files, that's the whole vibe 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so with this module you can download a remotefile via sftp, http and ftp from a host straight to your local computer. like, it's giving file transfer main character energy πŸ’…

⚠️ heads up bestie: Version <= 1.0: All these functions will not be reported. periodt.

✨ SYNOPSIS ✨

here's how it actually looks, no cap:

# sftp
task "download", "remoteserver", sub {
  download "/remote/file", "localfile";
};

# http
task "download2", sub {
  download "http://server/remote/file";
};

πŸ‘‘ EXPORTED FUNCTIONS πŸ‘‘

πŸ’œ download($remote, [$local])

perform a download. and listen β€” if no local file is specified, it will download the file to the current directory. it just handles it. iconic behaviour fr fr.

task "download", "remoteserver", sub {
  download "/remote/file", "localfile";
};

task "download", sub {
  download "http://www.rexify.org/index.html", "localfile.html";
};

so like, $remote goes in, $local is optional but lowkey recommended unless you're cool with files just appearing in your cwd (which, valid, do you boo 🌈).


and that's the whole page bestie, every flag, every arg, every example kept intact, nothing skipped πŸ’–

anyway this lil beauty came from perl v5.40.1, dated 2025-10-03, and it's filed under Rex::C...ownload(3pm). go download something cute, slay, bye πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from