Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2009-11

Is there any way to call perl functions in a *.pm from within FPC/Lazarus ?

6 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Joyner ᏩᏯ

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?

Reply by email

Michael Joyner ᏩᏯ

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?

Reply by email

Phil Hess
to Michael Joyner ᏩᏯ

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

----- "Michael Joyner ??" wrote 13 lines
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? -- LyX: http://www.lyx.org/ OpenOffice: http://www.openoffice.org/ Inkscape: http://www.inkscape.org/ Scribus: http://www.scribus.net/ GIMP: http://www.gimp.org/ PDF: http://www.pdfforge.org/ -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Michael Joyner ᏩᏯ
to Phil Hess

I just read this: http://perldoc.perl.org/perlembed.html

Assembler for stack manipulation, etc.

Evil!

Phil Hess wrote 8 lines
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

Reply by email

Phil Hess
to Michael Joyner ᏩᏯ

What exactly are you trying to script? There are undoubtedly other ways to do it than by using Perl.

Thanks.

-Phil

----- "Michael Joyner ??" wrote 26 lines
I just read this: http://perldoc.perl.org/perlembed.html Assembler for stack manipulation, etc. Evil! Phil Hess wrote: > 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 > -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Michael Joyner ᏩᏯ
to Phil Hess

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.

Phil Hess wrote 17 lines
What exactly are you trying to script? There are undoubtedly other ways to do it than by using Perl. Thanks. -Phil ----- "Michael Joyner ??" wrote: > I just read this: http://perldoc.perl.org/perlembed.html > > Assembler for stack manipulation, etc. > > Evil! > > >

Reply by email