Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating exe from multiple perl files

I have a set of 4 perl files. The main file calls the other three files as: system("perl file2.pl"); (all the files are in the same folder) I have to create a single exe file from all the four .pl files such that i am able to call the other 3 files using just the main script. I have tried creating an exe using perl dev kit. but it works only if the files are present in the same directory as the exe. Please suggest some way to make an independent exe that is able to call the 3 files.

*I dont know if this is important or not but all the files have GUI.

like image 949
drastogi Avatar asked Apr 14 '26 01:04

drastogi


1 Answers

Either include the code of all files in a single file instead of using system() call, or turn other 3 perl files into modules and import them in your main perl script. Otherwise, the generated executable will call system() as you do in your original script.

like image 191
perreal Avatar answered Apr 16 '26 02:04

perreal



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!