NAME
Mail::Make::Body::InCore - In-Memory Body for Mail::Make
SYNOPSIS
use Mail::Make::Body::InCore;
my $body = Mail::Make::Body::InCore->new( "Hello, World!\n" ) ||
die( Mail::Make::Body::InCore->error );
my $fh = $body->open || die( $body->error );
VERSION
v0.1.0
DESCRIPTION
Holds mail body content in memory as a plain Perl scalar. Accepts a plain scalar or a scalar reference at construction time.
CONSTRUCTOR
new( $data )
Accepts either a plain scalar or a scalar reference. Returns the object, or sets an error and returns undef.
METHODS
as_string
Returns a scalar reference to the internal data.
is_in_core
Returns true (1).
length
Returns the byte length of the stored data.
open
Returns a read-only in-memory filehandle.
AUTHOR
Jacques Deguest <jack@deguest.jp>
SEE ALSO
Mail::Make::Body::File, Mail::Make::Body, Mail::Make
COPYRIGHT & LICENSE
Copyright(c) 2026 DEGUEST Pte. Ltd.
All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.