RosettaCodeData/Task/Call-a-function-in-a-shared-library/Perl/call-a-function-in-a-shared-library-1.pl

11 lines
137 B
Perl
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
use Inline
C => "DATA",
ENABLE => "AUTOWRAP",
LIBS => "-lm";
print 4*atan(1) . "\n";
__DATA__
__C__
double atan(double x);