my $set_dot_ssh = FromCode->new(
code => sub {
my ($self, $state) = @_;
- $state->bind_var_then($state->scope_var('P'), '/home/me/.ssh', $self->next);
+ $state->bind_value($state->scope_var('P'), '/home/me/.ssh')
+ ->then($self->next);
}
);
code => sub {
my ($self, $state) = @_;
if (my $p = $paths{$state->scope_var('P')->bound_value}) {
- return $state->bind_var_then($state->scope_var('PS'), $p, $self->next);
+ return $state->bind_value($state->scope_var('PS'), $p)
+ ->then($self->next);
}
return $state->backtrack;
}