Help for this page

Select Code to Download


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