SWIG Perl Examples

The following examples illustrate the use of SWIG with Perl.

Compilation Issues

Compatibility

The examples have been extensively tested on the following platforms:

Please see the Windows page in the main manual for information on using the examples on Windows.

Due to wide variations in the Perl C API and differences between versions such as the ActivePerl release for Windows, the code generated by SWIG is extremely messy. If the code doesn't compile or work with your version of Perl, please let us know by contacting us on the mailing lists. Better yet, send us a patch.