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

use strict;
use base ('App::RecordStream::DomainLanguage::Valuation');
sub new
{
my $class = shift;
my $keyspec = shift;
my $this =
{
'KEYSPEC' => $keyspec,
};
bless $this, $class;
return $this;
}
sub evaluate_record
{
my $this = shift;
my $r = shift;
my $keyspec = $this->{'KEYSPEC'};
return ${$r->guess_key_from_spec($keyspec)};
}
1;