The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/perl

use strict;
use warnings;

use Test::More tests => 4;

use String::Tagged;

my $str = String::Tagged->new( "Hello, world" );

is( sprintf( "%s", $str ),
    "Hello, world",
    'STRINGify operator' );

my $s = $str . "!";
is( $s->str, "Hello, world!", 'concat after' );

$s = "I say, " . $str;
is( $s->str, "I say, Hello, world", 'concat before' );

$str .= "!";

is( $str->str, "Hello, world!", 'str after .= operator' );