Net::H...stItem(3pm)
π NAME π
Net::Hotline::FileListItem β it's a File object, bestie, and it's used internally by Net::Hotline::Client. That's the whole vibe. β¨
πΈ SYNOPSIS πΈ
okay so here's how you'd actually touch this thing:
use Net::Hotline::FileListItem;
$file = new Net::Hotline::FileListItem;
$file->name("foo.txt");
$file->type("TEXT");
...
like. that's it. that's the whole flex. π
π¦ DESCRIPTION π¦
Net::Hotline::FileListItem is a simple class β lowercase simple, no drama β for storing and retrieving file information. π
bestie listen: you should never have to create your ownNet::Hotline::FileListItemobjects when you're usingNet::Hotline::Client. Never ever. That's not your job, that's the module's job, and the module is handling it. π«Ά
Getting attributes is basically the whole point. Setting them is to a lesser extent necessary. That's it. That's the entire to-do list. β¨
π§ CONSTRUCTION π§
newβ creates a brand newNet::Hotline::FileListItemobject, and every single attribute starts out asundef. (well β the numeric ones start at zero instead, because numbers can't be undef and slay at the same time.) π
π METHODS π
okay so ALL the Net::Hotline::FileListItem methods are just simple attribute get/set routines. No cap. Every single one.
The rules, fr fr:
- if you give it an argument, it sets that attribute
- in all cases, it returns the current value of the attribute π
so basically every method is a two-for-one. iconic behaviour honestly.
π creator TEXT
The file creator β and it's given as a four-letter Mac OS creator code. Like "TTXT", "SIT!", etc. β¨
π name TEXT
The file name. That's it. That's the whole description. short and sweet, main character energy. π
π size NUM
The size of the file, in bytes. NUM, not TEXT, bestie β it's a number. π’
β type TEXT
The file type β given as a four-letter Mac OS type code, like "TEXT", "PICT", etc. β or Net::Hotline::Constants::HTLC_FOLDER_TYPE if the thing is a folder. π (yes folders get to play too.)
π AUTHOR π
John C. Siracusa (siracusa@mindspring.com) β we love a legend. π
π COPYRIGHT π
Copyright(c) 1999 by John Siracusa. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. π«Ά
and that's the tea, bestie β this page came to you from perl v5.32.0, dated 2021-01-09, and it's part of the User Contributed Perl Documentation, iykyk. mwah. πβ¨
π¦ where this page comes from
- debian bookworm: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-hotline-perl 0.83-3.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-hotline-perl 0.83-3.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