Net::H...::User(3pm)
πΈ NAME πΈ
okay so bestie, this is Net::H...::User(3pm) β a page from the User Contributed Perl Documentation β and it's all about Net::Hotline::User, the user object that Net::Hotline::Client uses internally. lowkey iconic, highkey just a lil data holder π
π SYNOPSIS π
use Net::Hotline::User;
$user = new Net::Hotline::User;
$user->nick("joe blow");
$user->icon(128);
print "Nick: ", $user->nick(), "\n";
...
β¨ DESCRIPTION β¨
Net::Hotline::User is a simple class for storing and retrieving user info. and fr fr β if you're using Net::Hotline::Client, you should never have to make your own Net::Hotline::User objects. Getting and setting attributes is literally all you should ever need to do. that's it, that's the whole job π«Ά
π¦ CONSTRUCTION π¦
new SOCKET, NICK, LOGIN, ICON, COLORβ with no arguments, this creates a brand newNet::Hotline::Userobject with every single attribute set toundef. your other option is to hand it exactly 5 arguments, in that exact order, as listed above. no more, no less, bestie π
π METHODS π
Every Net::Hotline::User method is a simple attribute get/set routine. give it an argument and it sets that attribute. and in all cases, it hands you back the current value of the attribute. set and get, get and set, we love a consistent queen β¨
color NUMBERβ the color of the user in the userlist. values are numbers from0to3. the hashHTLC_COLORS, defined over inNet::Hotline::Constants, holds the number-to-name color mappings (like,$HTLC_COLORS{2}is"red"). example:
use Net::Hotline::Constants qw(HTLC_COLORS);
...
print $user->nick(), " is ", $HTLC_COLORS{$user->color()}, "\n";
icon NUMBERβ the user's icon number. negative values are accepted, so go wild πinfo TEXTβ user information, delivered as a block of "pretty-formatted" text.login TEXTβ the user's login name.nick TEXTβ the user's nickname in the userlist.socket NUMBERβ the user's unique socket number. users get assigned a socket number when they connect to a Hotline server. π
π 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 the whole page, bestie π this was Net::H...::User(3pm) as documented for perl v5.32.0, dated 2021-01-09 β slay, go forth and set some attributes β¨ππ¦
π¦ 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