Net::FT...eHandle(3)
β¨ NAME β¨
Net::FTPServer::FileHandle β bestie, it's literally a file handle for Net::FTPServer. That's the whole vibe. It's giving "one file, one handle, one main character." π
This page is Net::FTPServer::FileHandle(3), hanging out in the User Contributed Perl Documentation section, and yes we are going to read all of it together like the iconic little docs they are. π
πΈ SYNOPSIS πΈ
use Net::FTPServer::FileHandle;
That's it. That's the whole incantation. Load it up and you're in. β¨
π METHODS π
Okay so here's the lineup, no skips, every single one of them:
$filename = $fileh->filename;β hands you back the filename, aka the last component. Just the name part, not the whole little address situation. π¦$dirh = $fileh->dir;β gives you the directory that this file is chilling inside of. Every file needs a home, and this is how you meet its home. π$fh = $fileh->open (["r"|"w"|"a"]);β opens up a file handle in read mode or write mode. And listen: that handle is derived fromIO::Handle, so if you want the deep lore go readIO::Handle(3). Also hi, there's a third option in there,"a". That's the whole list of what you can pass, periodt. π₯$rv = $fileh->delete;β deletes the current file. And here's the receipts on the return value, bestie, because this one matters: if the delete actually worked, you get back0. If something went wrong, you get back-1. That's it, those are the two options, don't get it twisted. π
Heads up: delete is a real deletion, so likeβ¦ make sure that's what you meant before you call it. π
π AUTHORS π
Richard Jones (rich@annexia.org) β the icon, the legend, the one who wrote this. π
π COPYRIGHT π
Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road, London, SW6 3EG, UK
Yes, we're citing the whole address, every word of it, because the original said it and we keep every single detail around here. π
π SEE ALSO π
- Net::FTPServer(3) β the parent situation, the whole server energy.
- perl(1) β the language itself, the blueprint, the origin story.
And that's the page, bestie!! π«Ά This was perl v5.42.0, dated 2025-07-25, and I'm obsessed with the fact that you read the entire thing. Slay. Byeee! πβ¨πΈ
π¦ where this page comes from
- fedora 43: perl-Net-FTPServer 1.125-33.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms