Stephen Hahn wrote: > * Roland Mainz <roland.mainz at nrubsig.org> [2007-07-19 17:01]: > > Alexander Kolbasov wrote: > > > > "Richard L. Hamilton" wrote: [snip] > > > Perl has a mechanism (called XSUB) to write glue code between C and Perl. > > > It > > > is definitely not the nicest part of the language. Using this mechanism > > > you > > > can export C data structures as Perl objects, but this is, by no means, > > > automatic. > > > > Do you have any URLs which describe the XSUB stuff ? > > There's probably a good online introduction, but the basics are > already on your system > > $ which perldoc > /usr/perl5/bin/perldoc > $ perldoc perlxs > $ perldoc perlxstut > $ perldoc perlapi > $ perldoc perlguts
Uhm... I only did a quick look... am I correct with the assumption that the XSUB stuff has no way to transfer alternative "return values" (e.g. C++/JAVA exceptions or similar stuff) back to the caller ? ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;)