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

$ExtUtils::Builder::FileSet::Subst::VERSION = '0.016';
use strict;
use Carp ();
use Scalar::Util ();
sub new {
my ($class, %args) = @_;
my $self = $class->SUPER::new(%args);
$self->{subst} = $args{subst} or Carp::croak("No subst given");
return $self;
}
sub add_input {
my ($self, $source) = @_;
my $target = $self->{subst}->($source);
$self->_pass_on($target);
return $target;
}
1;