- or download this
double cos( double x )
/* No need to write the trivial XS wrapper, just the declaration */
- or download this
package Math::MyWrapper;
use Math::MyWrapper::XS();
...
return Math::MyWrapper::XS::cos( $x );
}
...
- or download this
package Math::MyWrapper::Class;
use Math::MyWrapper();
...
or die "Error building $sub method: $@\n";
}
1