Net::H...foItem(3pm)
๐ NAME ๐
okay bestie, meet Net::Hotline::FileInfoItem โ it's the file object that Net::Hotline::Client uses internally. that's the whole thing. it's giving "background character who's actually carrying the plot" โจ
(this page is from the User Contributed Perl Documentation section, and yeah the title is literally <lavender>Net::H...foItem(3pm)</lavender> because the man page header couldn't fit the whole name in the margin ๐ญ iconic honestly)
๐ SYNOPSIS ๐
use Net::Hotline::FileInfoItem;
$file = new Net::Hotline::FileInfoItem;
$file->name("smile");
$file->comments("A happy file.");
...
like. look at that. smile? a happy file? we love a wholesome little object ๐ซถ
๐ฆ DESCRIPTION ๐ฆ
so <pink>Net::Hotline::FileInfoItem</pink> is a simple class โ a lil container for storing and retrieving file information. that's its whole job. it is not doing side quests.
here's the important part, no cap: if you're using <cyan>Net::Hotline::Client</cyan>, you should never have to create your own <pink>Net::Hotline::FileInfoItem</pink> objects. like, never ever. getting attributes is basically all you'll ever need, and setting them is a thing you can do, but to a lesser extent. that's it. that's the scope.
๐ธ CONSTRUCTION ๐ธ
newโ makes you a brand new<pink>Net::Hotline::FileInfoItem</pink>object, with every single attribute set toundef. a blank slate. a fresh face. a baby ๐ฃ
โจ METHODS โจ
every method here is a simple attribute get/set routine. the rules are:
- if you hand it an argument, it sets that attribute.
- in all cases, it returns the current value of that attribute.
that's the entire pattern, bestie. you already know it. iykyk.
๐ comment TEXT
the file comments, exactly as they show up in the Mac OS Finder.
๐ heads up: the SYNOPSIS up there calls$file->comments("A happy file.");โ yes, with ans. the method documented here iscomment. i'm just telling you what the page says, don't shoot the messenger ๐
๐ง ctime NUM
the creation time of the file, given as a Mac OS native time value. to turn it into seconds since the Unix epoch, add the constant <mint>Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME</mint> to it. math girlies rise up ๐งฎ
๐ creator TEXT
the file creator, given as a four-letter Mac OS creator code ("TTXT", "SIT!", etc.)
โญ name TEXT
the file name. that's it. the name of the file. slay.
๐ icon
the file icon, given as a four-letter code.
๐
mtime NUM
the modification time of the file, given as a Mac OS native time value. add the constant <mint>Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME</mint> to it to change it to seconds since the Unix epoch.
๐ ctime NUM
the creation time of the file, given as a Mac OS native time value. add the constant <mint>Net::Hotline::Constants::HTLC_MACOS_TO_UNIX_TIME</mint> to it to change it to seconds since the Unix epoch.
๐ not me telling you twice โ yes, ctime really is listed twice in the original. we're keeping it. no edits, no notes, we honor the source material periodt.
๐ฆ size NUM
the size of the file, in bytes.
๐ type TEXT
the file type, given as a four-letter Mac OS type code ("TEXT", "PICT", etc.), or <mint>Net::Hotline::Constants::HTLC_INFO_FOLDER_TYPE</mint> for folders, and <mint>Net::Hotline::Constants::HTLC_INFO_FALIAS_TYPE</mint> for folder aliases. one method, three moods ๐ซ
๐ AUTHOR ๐
John C. Siracusa (siracusa@mindspring.com)
๐ 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 a wrap on <lavender>Net::H...foItem(3pm)</lavender>, bestie ๐
this lil page rode in with perl v5.32.0 and got stamped 2021-01-09, and honestly? it ate. go get those attributes. 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