Mail::B...stScalar(3)

✨ NAME ✨

okay bestie, meet Mail::Box::FastScalar β€” it's the fast alternative to IO::Scalar πŸ’… like, the whole point is speed.


🌸 SYNOPSIS 🌸

look at this, it's giving so simple:

my $fh = Mail::Box::FastScalar->new;
$fh->open(\my $out);

my $fh = Mail::Box::FastScalar->new(\my $out);

that's it. that's the whole vibe. ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

it's an extremely fast IO::Scalar replacement, no cap β€” we're talking over 20x improvement in the getline() and getlines() methods. twenty. times. faster. the glow-up is real πŸ”₯

contributed by "Todd Richmond" (richmond@proofpoint.com) β€” thank u king 🫢

πŸ’€ Warnings πŸ’€

okay so these two things, you gotta know them or you're gonna have a bad time:

  • you cannot modify the original reference between calls unless you "$obj-"seek(1, 0)> to reset the object β€” this is a VERY rare usage case, so like, don't stress, but also don't do it 🫠
  • $/ must be "undef" or a string β€” "" and \scalar are unimplemented πŸ™ˆ
⚠️ fr fr, those are not suggestions. respect the caveats or the vibes will not be immaculate.

πŸ”₯ SEE ALSO πŸ”₯

this module is part of Mail-Message version 4.04, built on February 04, 2026. website, if you wanna go lurk: http://perl.overmeer.net/CPAN/ 🌈


πŸ‘‘ LICENSE πŸ‘‘

for contributors, go peek at the file ChangeLog πŸ’–

this software is copyright (c) 2001-2026 by Mark Overmeer. icon behavior, honestly.

it's free software β€” you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. periodt. πŸ’…


k bye bestie, go be fast ✨

perl v5.42.0 Β· 2026-02-05 Β· Mail::B...stScalar(3) πŸŽ€

πŸ“¦ where this page comes from