Sendpage::Page(3)
β¨ 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()β theifchecks 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 π
perl(1)sendpage(1)Sendpage::KeesConf(3)Sendpage::KeesLog(3)Sendpage::Modem(3)Sendpage::PagingCentral(3)Sendpage::PageQueue(3)Sendpage::Recipient(3)Sendpage::Queue(3)
iykyk β go read the whole friend group πΈ
π COPYRIGHT π
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
- alpine 3.22: sendpage-doc 1.0.3-r10 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms