Scroll to navigation

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

NAME

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

SYNOPSIS

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

DESCRIPTION

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

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

Warnings

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

SEE ALSO

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

LICENSE

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-12-07 perl v5.40.1