Is there a way to create an executable that runs both Python and Perl script?
问题 I'm building a Python program that also runs a Perl script from within. Is there a way to create an executable where the user of my program doesn't have to install Perl but has Python? 回答1: Here is an example of how you can use pp to build an executable (that does not depend on the perl executable being installed). I am using perlbrew with perl version 5.30 on Ubuntu 20.04. First install pp : cpanm PAR::Packer Create a test Perl script hello.pl (you may need to install Path::Tiny first): use