Sendpage::Page(3)

πŸ“¦
version 1.0.3 Β· 4 versions
, in alpine 3.22

✨ NAME ✨

okay bestie, welcome to Sendpage::Page(3) β€” the manual page for Sendpage::Page, coming at you from the User Contributed Perl Documentation side of town 🫢

Sendpage::Page β€” encapsulates the data of an actual page. literally its whole job πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

Short and sweet: this module gets used in sendpage(1).


πŸ’– DESCRIPTION πŸ’–

okay so this is the code vibe check, and it is giving very much β€œobject-oriented page data, no cap” ✨

$page=Sendpage::Page->new(\@recipients, \$text, \%options);

$data=$page->dump();        # storable dump of page data

if ($page->deliverable()) {
    for ($page->reset(), $page->next();
         $recip=$page->recip();
         $page->next()) {
            $text=$page->text();    # get text of page
            $page->drop_recip();    # discard current recipient
    }
    $page->attempts(1);
}
$anyone_left=$page->has_recips();
$attempts=$page->attempts();

$page->option('from',"someone else"); # set option named 'from'
$from=$page->option('from');          # get option named 'from'

$page->option('from',$from,1); # delete option named 'from'

what that snippet is serving, lowkey:

  • Sendpage::Page->new(\@recipients, \$text, \%options) β€” makes a new page from recipients, text, and options.
  • $page->dump() β€” gives you the storable dump of page data.
  • $page->deliverable() β€” the if checks it before doing the recipient loop.
  • $page->reset() and $page->next() β€” iteration setup and stepping.
  • $page->recip() β€” grabs the current recipient.
  • $page->text() β€” gets the text of the page.
  • $page->drop_recip() β€” discards the current recipient.
  • $page->attempts(1) β€” sets attempts in the example; $page->attempts() reads it back.
  • $page->has_recips() β€” checks if anyone is left.
  • $page->option('from',"someone else") β€” sets the option named 'from'.
  • $page->option('from') β€” gets the option named 'from'.
  • $page->option('from',$from,1) β€” deletes the option named 'from'.

periodt πŸ’…


πŸ’€ BUGS πŸ’€

The entire bugs section is: This needs more docs.

yep, that's the tea 😭 more docs needed, fr fr.


πŸ‘‘ AUTHOR πŸ‘‘

Kees Cook <kees@outflux.net>

iconic. we stan πŸŽ€


🌈 SEE ALSO 🌈

iykyk β€” go read the whole friend group 🌸


Copyright 2000 Kees Cook.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.


and that's the whole manual, bestie πŸ’– source/version: perl v5.40.2; date: 2024-06-10; manual: Sendpage::Page(3) β€” bye, go slay your pages ✨

πŸ“¦ where this page comes from