How do I add Perl scripting support to a Delphi application?
PLDelphi is a Perl project hosted on CPAN . I am currently working on a Delphi application and I am looking into adding support for Perl scripting and reading about PLDelphi.
Ideally, I want my application to not require Perl to be installed. PLDelphi claims to support this:
To use PLDelphi from your Delphi application without having to install Perl, you will need these files in the core of your application:
PLDelphi.dll - PLDelphi library that loads the Perl translator. PLDelphi.pm - Perl side of PLDelphi. Perl56.dll - Perl library in case you have Perl built dynamically. PLDelphi_dll.pas - PLDelphi and DLL wrapper. lib / * - Perl lib directory with core .pm files (strict, warnings, etc.)
I know RemObjects PascalScript and Python embedding in Delphi , but in this case I'm primarily interested in Perl support.
Has anyone used PLDelphi with success? Or have you found other ways to execute Perl scripts from Delphi without a full Perl installation available locally?
EDIT: To be more clear, I found one potential solution and is using PLDelphi. However, I would like to know if anyone has used it (last updated in 2004) and how well it worked.
I am also curious about any other options for embedding a Perl interpreter with Delphi.
I was actually looking for a solution that didn't require installing anything on the client. It looks like PLDelphi doesn't work with ActivePerl 5.10 ... so I don't believe there is a ready-made solution for embedding Perl in a Delphi application.
You can use Windows Script Host (which comes with VBScript and JScript by default) and install PerlScript from ActiveState.
Sadly PLDelphi is not updated for XE3 or 64 bit there because it won't work with Perl 5.16