From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

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