(stringification) Returns the body as string --which will trigger
completion-- unless called to produce a string for Carp
. The latter
to avoid deep recursions.
print $msg->body; # implicit by print my $body = $msg->body; my $x = "$body"; # explicit by interpolation
When a body object is used as being an array reference, the lines of
the body are returned. This is the same as using the lines
method.
Always returns a true value, which is needed to have overloaded
objects to be used as in if($body)
. Otherwise, if(defined $body)
would be needed to avoid a runtime error.
See METHODS in Mail::Reporter
Option | Defined in | Default |
---|---|---|
log | Mail::Reporter |
|
message | <required> | |
trace | Mail::Reporter |
|
Returns the loaded version of this body.