The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

use Test::More 'no_plan';
package Problem;
# overload seems to interfere with overloading coercions
sub as_string : STRINGIFY { return 'string'; }
package main;
our $obj;
BEGIN {
$obj = Problem->new();
ok("$obj");
}
ok("$obj");