HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/strawberry/perl/lib/Test/Deep/String.pm
use strict;
use warnings;

package Test::Deep::String;

use Test::Deep::Cmp;

sub init
{
  my $self = shift;

  $self->{val} = shift;
}

sub descend
{
  my $self = shift;
  my $got = shift()."";

  $self->data->{got} = $got;

  return $got eq $self->{val};
}

sub diag_message
{
  my $self = shift;

  my $where = shift;

  return "Comparing $where as a string";
}

1;