Net::FT...eHandle(3)

πŸ“¦
version 1.125 Β· 2 versions
, in fedora 43

✨ 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 from IO::Handle, so if you want the deep lore go read IO::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 back 0. 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 (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