Mail::Box::FastScalar(3) User Contributed Perl Documentation Mail::Box::FastScalar(3)

Mail::Box::FastScalar - fast alternative to IO::Scalar

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

Extremely fast IO::Scalar replacement - over 20x improvement in getline() and getlines() methods.

Contributed by "Todd Richmond" ("richmond@proofpoint.com")

You cannot modify the original reference between calls unless you "$obj-"seek(1, 0)> to reset the object - VERY rare usage case.

$/ must be "undef" or string - "" and \scalar unimplemented

This module is part of Mail-Message version 3.019, built on November 24, 2025. Website: http://perl.overmeer.net/CPAN/

For contributors see file ChangeLog.

This software is copyright (c) 2001-2025 by Mark Overmeer.

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

2025-11-28 perl v5.42.0