Skip to content

Commit

Permalink
no need string-eval
Browse files Browse the repository at this point in the history
  • Loading branch information
mohawk2 committed Mar 22, 2021
1 parent 39fd8ca commit 3f6d08c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions FFTW3_header_include.pm
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ EOF
my $internal_function =
$is_real_fft ?
( $do_inverse_fft ? "PDL::__irfft$rank" : "PDL::__rfft$rank") : "PDL::__fft$rank";
eval( $internal_function . '( $in, $out, $plan );' );
barf "$thisfunction: eval failed calling the internal FFT routine: $@" if $@;
eval { no strict 'refs'; $internal_function->( $in, $out, $plan ) };
barf $@ if $@;

return $out;
}
Expand Down

0 comments on commit 3f6d08c

Please sign in to comment.