Is there any way to call perl functions in a *.pm from within FPC/Lazarus ?
I know there exists a "perlcall" for 'C', is there an equivelant?

Mailing lists / lazarus / 2009-11
6 messages · 2 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Is there any way to call perl functions in a *.pm from within FPC/Lazarus ?
I know there exists a "perlcall" for 'C', is there an equivelant?
Is there any way to call perl functions in a *.pm from within FPC/Lazarus ?
I know there exists a "perlcall" for 'C', is there an equivalent?
Michael,
On Linux and OS X, type man perlembed at the command line and look at the example of embedding the Perl interpreter in a C program. You'll need to do the same thing in Pascal. Once you've got it working, please create a wiki page explaining it all for us.
Thanks.
-Phil
I just read this: http://perldoc.perl.org/perlembed.html
Assembler for stack manipulation, etc.
Evil!
What exactly are you trying to script? There are undoubtedly other ways to do it than by using Perl.
Thanks.
-Phil
I was wanting to use a perl module as if it were a C library. The *.pm was the vSphere Perl SDK one. I am going back to trying to get ws_helper.exe to convert the WSDL files into something useful. Anything pre-SVN for the Web Services Toolkit provides nearly empty *.pas files for output, the SVN produces a 3.6 MB file to try and look through to see how it matches up with the Java and C# samples. Lots-of-fun.