}
my $code = eval _make_source(@_);
+ my $e = $@;
if (!ref($code) || ref($code) ne 'CODE') {
undef $code;
- $@ = "The 'source' parameter must return a subroutine reference";
+ $e = "The 'source' parameter must return a subroutine reference";
}
- return ($code, $@);
+ return ($code, $e);
}
sub _make_source {