<p>I would like to call Perl script files from my c++ program.</p>

<p>I am not sure that the people I will distribute to will have Perl installed.</p>

<p>Basically I'm looking for a .lib file that I can use that has an Apache like distribution license.</p>

[{'answer_id': 49172, 'author': 'aku', 'author_id': 1196, 'author_profile': 'https://Stackoverflow.com/users/1196', 'pm_score': 5, 'selected': True, 'text': '<p>You can embed perl into your app. </p>\n\n<ul>\n<li><a href="http://www.linuxjournal.com/article/2901" rel="noreferrer">Perl Embedding</a> by John Quillan</li>\n<li><a href="http://xaxxon.slackworks.com/ep/" rel="noreferrer">C++ wrapper around Perl C API</a></li>\n</ul>\n'}, {'answer_id': 49521, 'author': 'Leon Timmermans', 'author_id': 4727, 'author_profile': 'https://Stackoverflow.com/users/4727', 'pm_score': 3, 'selected': False, 'text': '<p>I\'m <a href="http://news.perlfoundation.org/2008/08/2008q3_grant_proposal_libperl.html" rel="noreferrer">currently</a> writing a library for embedding Perl in C++, but it\'s not finished yet. In any case I would recommend against using the EP library. Not only has it not been maintained for years, but is also has some severe architectural deficiencies and is rather limited in its scope. If you are interested in alpha software you can contact me about it, otherwise I\'d advice you to use <a href="http://perldoc.perl.org/perlembed.html" rel="noreferrer">the</a> <a href="http://perldoc.perl.org/perlguts.html" rel="noreferrer">raw</a> <a href="http://perldoc.perl.org/perlapi.html" rel="noreferrer">API</a>.</p>\n'}, {'answer_id': 62396, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 1, 'selected': False, 'text': '<p>To call perl from C++ you need to use the API, as someone else mentioned; the basic tutorial is available in the <a href="http://perldoc.perl.org/perlxstut.html" rel="nofollow noreferrer">perlxstut</a> documentation.</p>\n\n<p>Note that you will most probably need more than just a ".lib", because you\'ll need a lot of tiny modules which are located in the "lib" directory of the perl distrib: strict.pm, etc. That\'s a not a big deal though, I guess; the apache example you mentioned has the same constraint of delivering some default configuration files etc.</p>\n\n<p>However, to distribute Perl, on Windows (I guess you\'re on Windows since you mentionned a .lib file), the ActiveState distribution which everyone uses might cause some licensing headache. It\'s not really clear to me, but it seems like you cannot redistribute ActivePerl in a commercial product. Note that, if you want to embed Perl in a C++ program, you might have to recompile it anyway, to have the same compilation flags on Perl and on your program.</p>\n'}]
['https://Stackoverflow.com/questions/49168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3153/']