Messag...llback(3pm)

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

πŸ’– NAME πŸ’–

Message::Passing::Output::Callback β€” okay bestie, this is the one where your messages literally come back to you. It's an output that calls back into your own code 🫢

(fr fr it's a page from the User Contributed Perl Documentation collection, section 3pm, and the manual name is the iconic Messag...llback(3pm) β€” yes, with the lil ellipsis, that's just how the terminal truncates it, don't come for her πŸ’…)


✨ SYNOPSIS ✨

Message::Passing::Output::Callback->new(
    cb => sub {
        my $message = shift;
    },
);

look at her. so simple. so clean. a cb, a sub, a shift. the way that this just works πŸ˜­πŸ’–


πŸŽ€ METHODS πŸŽ€

πŸ’Œ cb

The callback to be called when a message is received.

like, that's it. that's the whole vibe. you hand her a coderef, she hands you messages. mutual exchange, healthy communication, we love to see it 🌸

πŸ’Œ consume ($msg)

Calls the callback with the message as its first parameter.

so when a message shows up, she goes "bestie here u go" and passes $msg as the first parameter to your callback. first parameter. number one. the main character slot πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

  • Message::Passing β€” the whole fam, go read her too iykyk

πŸ‘‘ SPONSORSHIP πŸ‘‘

okay so this module literally exists because of the wonderful people at Suretec Systems Ltd. <http://www.suretecsystems.com/> 🫢 They sponsored its development 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>

not me getting emotional over corporate sponsorship. they funded a whole callback. kings, honestly 🌈⭐


See Message::Passing.

(yeah girl, everything you need is over there. go look. no cap.)


πŸ’€ heads up bestie: there is genuinely no other content in this page. no hidden options, no sneaky env vars, no exit codes. it's a small page and she's perfect the way she is. don't invent lore that isn't there, that's the one thing we don't do 🫢

sign-off time πŸŽ€ This little cutie is documented as part of perl v5.32.1 and she was dated 2021-11-09 β€” and yes the footer is also out here calling her Messag...llback(3pm) because the terminal refuses to show her whole name. iconic behaviour honestly. slay, go pass some messages πŸ’–βœ¨πŸ¦‹