Sendpage::Queue(3)
π Sendpage::Queue(3) π
okay bestie, welcome to the Sendpage::Queue(3) page from the User Contributed Perl Documentation section. itβs giving βshort but useful,β and weβre keeping every crumb. β¨
πΈ NAME πΈ
Queue.pm β implements a simple directory-based file queue. thatβs the whole name card, and honestly it ate. π
π¦ SYNOPSIS π¦
hereβs the synopsis, untouched and slaying in its natural habitat:
$queue=Sendpage::Queue->new($dir);
while ($queue->ready()) {
$filename=$queue->file();
$fh=$queue->getReadyFile();
if ($can_remove_file) {
$queue->fileToss();
}
else {
$queue->fileDone();
}
}
# open a new queue file
$fh=$queue->getNewFile();
# ... do things to the file handle here
# release the file
$queue->doneNewFile();
so yeah: you spin up a queue with Sendpage::Queue->new($dir), loop while $queue->ready(), grab $queue->file() and $queue->getReadyFile(), and then either $queue->fileToss() if $can_remove_file is true or $queue->fileDone() if it isnβt. for a new queue file you call $queue->getNewFile(), do your thing with the file handle, and release it with $queue->doneNewFile(). π«Ά
π DESCRIPTION π
this is a module for use in sendpage(1). literally thatβs the description, and itβs iconic in its minimalism. π
π BUGS π
no cap, the bug note is just: Need to write more docs. so go write more docs, bestie β the docs are lowkey the main character here. π
π AUTHOR π
Kees Cook <kees@outflux.net> β yes, thatβs the author, and theyβre serving credit where credit is due. π
π₯ SEE ALSO π₯
go look at all of these, iykyk:
perl(1)sendpage(1)Sendpage::KeesConf(3)Sendpage::KeesLog(3)Sendpage::Modem(3)Sendpage::PagingCentral(3)Sendpage::PageQueue(3)Sendpage::Page(3)Sendpage::Recipient(3)
β 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.
mwah! π thatβs the whole page. source/version: perl v5.40.2; date: 2024-06-10; and itβs Sendpage::Queue(3) β bye bestie! π«Άπ
π¦ 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