Sisima...:STDIN(3pm)
π Sisimai::Mail::STDIN β the mail-reading bestie that lives in your terminal π
okay so bestie, pull up a chair πͺ because this is Sisimai::Mail::STDIN, and she's part of the User Contributed Perl Documentation crew β a 3pm manual page, iykyk. She's a mailbox reader, and her whole thing? She reads email data straight from Standard-In. That's it. That's the vibe. πΈ
β¨ SYNOPSIS β¨
use Sisimai::Mail::STDIN;
my $mailbox = Sisimai::Mail::STDIN->new();
while( my $r = $mailbox->read ) {
print $r; # print data read from STDIN
}
π¦ DESCRIPTION π¦
Sisimai::Mail::STDIN reads email data from Standard-In. Standard input. The classic. The icon. The STDIN girlies know. π
π CLASS METHODS π
π new()
new() is the constructor of Sisimai::Mail::STDIN β it's giving main character energy, it's how you spin one of these up.
my $mailbox = Sisimai::Mail::STDIN->new();
π INSTANCE METHODS π
π path()
path() hands you back a fixed string, and that string is "<STDIN>". She doesn't move, she doesn't change, she just is. Iconic behaviour, honestly.
print $mailbox->path; # "<STDIN>"
π size()
size() spills the tea on the data size that's been read so far. Numbers! We love numbers. β¨
print $mailbox->size; # 2202
π§ offset()
offset() returns the offset position used for seeking the mbox. That offset value is a count of bytes that have already been read. So when you're like "where are we bestie", this is your answer. π
print $mailbox->offset; # 0
π«Ά handle()
handle() gives you back the file handle object β an IO::Handle β of the mbox. Raw handle energy. Hold it gently. π
$mailbox->handle;
π₯ read()
read() is the iterator bestie β it walks through each email in the mbox one at a time, no cap, no skipping.
my $mailbox = Sisimai::Mail->new();
while( my $r = $mailbox->read ) {
print $r; # print data read from STDIN
}
π AUTHOR π
azumakuniyuki
β COPYRIGHT β
Copyright (C) 2014-2016,2018-2021,2024,2025 azumakuniyuki, All rights reserved.
πΈ LICENSE πΈ
This software is distributed under The BSD 2-Clause License.
and that's the whole page, bestie β swerve responsibly π
mwah π this one's from perl v5.40.1, dated 2026-07-05, and it goes out to the one and only Sisima...:STDIN(3pm). stay hydrated, read your STDIN, periodt. π
β¨
π¦ where this page comes from
- ubuntu stonking: libsisimai-perl 5.7.0-1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms