Messag...Handle(3pm)

πŸ“¦
version 0.117 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute

✨ NAME ✨

Message::Passing::Output::IO::Handle β€” it's giving "output to an IO handle" πŸ’… bestie, that's the whole vibe.


🌸 SYNOPSIS 🌸

my $out = Message::Passing::Output::IO::Handle->new(
    fh => \*STDOUT,
    append => "\n",
);
# $out will now act like Message::Passing::Output::STDOUT

okay so like, you set it up like that and boom β€” $out is out here living its best life exactly like Message::Passing::Output::STDOUT would. iconic behaviour honestly 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

So basically this thing outputs messages to an IO::Handle-ish handle. And when we say "-ish" we mean it literally just needs to be any class which implements a ->print($stuff) method. That's it. That's the bar. If it can print stuff, it's in. lowkey the most inclusive energy ever πŸ’–


πŸŽ€ ATTRIBUTES πŸŽ€

πŸ’œ fh

The file handle object itself. Required. Like, you gotta bring this one to the party, no fh no service, fr fr πŸ™ˆ

πŸ“ append

A string that gets appended to every single message. Defaults to "\n" β€” so yeah, by default it's out here adding a lil newline to everything, cute right? ✨


🌈 METHODS 🌈

⭐ consume

Consumes a message by printing it, followed by \n. That's the whole move. Print, newline, done, slay πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

  • Message::Passing β€” go look at the parent, it's the main character of this whole saga πŸ’«

πŸ’Έ SPONSORSHIP πŸ’Έ

ngl this module only exists because of the wonderful people at Suretec Systems Ltd. <http://www.suretecsystems.com/> who sponsored its development 🫢 They did it for their VoIP division called SureVoIP <http://www.surevoip.co.uk/> for use with the SureVoIP API β€” <http://www.surevoip.co.uk/support/wiki/api_documentation>. Absolute legends, periodt. πŸ’–


See Message::Passing. That's it. That's the whole section, bestie, go check that one out for the receipts 🧚


and that's a wrap!! this lil page is from the User Contributed Perl Documentation, shipped with perl v5.32.1, dated 2021-11-09 β€” no cap, go print some stuff to a handle πŸ’…βœ¨