Net::H...ateChat(3pm)

πŸ’– Net::Hotline::PrivateChat(3pm) β€” the little private-chat object that lives in your Net::Hotline::Client's walls πŸ’–

okay bestie, listen up ✨ this page is from the User Contributed Perl Documentation section of the manual, and it's all about Net::Hotline::PrivateChat β€” a private chat object that's used internally by Net::Hotline::Client. she's not the main character of your script, she's the backstage crew. πŸ’…


🌸 NAME 🌸

Net::Hotline::PrivateChat β€” a private chat object used internally by Net::Hotline::Client. lowkey she's shy, she doesn't want to be instantiated by you directly, she just wants to hold your chat info. 🫢


✨ SYNOPSIS ✨

use Net::Hotline::PrivateChat;

$pchat = new Net::Hotline::PrivateChat;

$pchat->subject("Issue 1: Monkey beards");
$pchat->reference(0x313337);
...

like yes, you can do this, but read the next section before you get any ideas πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

Net::Hotline::PrivateChat is a simple class for storing and retrieving private chat information. that's it. that's the whole vibe. 🧚

bestie, fr fr β€” you should never have to create your own Net::Hotline::PrivateChat objects when you're using Net::Hotline::Client. the client handles that for you, no cap. all you should ever need is getting attributes (and, to a lesser extent, setting them). that's the whole job. πŸ’€

πŸŽ€ CONSTRUCTION πŸŽ€

new REF, USERLIST, SUBJECT

creates a new Net::Hotline::PrivateChat object, and she comes with three lil pieces of info:

  • REF β€” a number
  • USERLIST β€” a reference to a hash of Net::Hotline::User objects, keyed by socket number
  • SUBJECT β€” a string

and if you forget any of these arguments? they get set to undef. no drama, no error, just undef. πŸ™ˆ


πŸ‘‘ METHODS πŸ‘‘

all the Net::Hotline::PrivateChat methods are simple attribute get/set routines. the way that works is:

  • if you give one an argument, it sets that attribute
  • in all cases, it returns the current value of the attribute

so it's giving very much "give me a value and I'll update, otherwise I'll just hand you what I've got." iconic. 🌈


  • reference NUM β€” the private chat reference number. ⭐
  • subject TEXT β€” the subject of the private chat. πŸ“
  • userlist HASHREF β€” the list of users in the private chat. πŸ’œ

🌟 AUTHOR 🌟

John C. Siracusa (siracusa@mindspring.com) β€” the legend, the icon, the moment. πŸ‘‘


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. periodt. πŸ’…


and that's the whole page, bestie! this one shipped as part of the User Contributed Perl Documentation in perl v5.32.0, dated 2021-01-09 β€” so if you're reading the Net::H...ateChat(3pm) page, you're looking at the goods from that exact release. slay, go forth, and don't make your own private chat objects. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from