in reply to Linking to Perl from Pascal

Instead of "hard" (in-process) linking which is segfault prone and hard to do right the first time, I would suggest splitting the Perl job into a separate process. There are at least two ways to do this:

Update: braino - Perl code is the callee, not the caller, so the doc pointers are not immediately relevant. Good material for reading, though.