Subject: | toString sometimes returns an object |
Date: | Thu, 7 Dec 2017 18:44:34 +0000 |
To: | bug-Log-Report [...] rt.cpan.org |
From: | Andrew Beverley <andy [...] andybev.com> |
toString has the following code:
# fill-in the fields
my $text = $self->{_expand}
? $domain->interpolate($format, $self)
: ($self->{_prepend} // '') . $format . ($self->{_append} // '');
$text is then returned from the function. However, $self->{_prepend}
(and presumably $self->{_append}) can sometimes (always?) be an object,
so it is an object (via the object's concat overload) that is returned
from the function in these cases, rather than a scalar string.
Do you need some more information/examples?