http://www.perlmonks.org?node_id=1090296

Asif123 has asked for the wisdom of the Perl Monks concerning the following question:

Hi to every one, I have written some scripts in PERL which generates the graphical output. First I was thinking to develop a web application but now my supervisor asked me to make its single exe file. Currently I have 4 scripts files. In Perl can I develop a standalone desktop software? with buttons and menu. I will really appreciate if some one share a good tutorial. I am from Biological science so don't have experiences in years for programming. Thanks

Replies are listed 'Best First'.
Re: PERL exe file
by marto (Cardinal) on Jun 18, 2014 at 11:22 UTC

    "First I was thinking to develop a web application but now my supervisor asked me to make its single exe file."

    You can use pp to create a single executable containing your scripts, required modules, data etc. The documentation is good (note the -x option), also related: PAR::Tutorial & par.perl.org. This question is asked reasonably frequently here, a Super Search will find many previous discussions on this topic. Understand that this will not hide your source code from anyone.

Re: PERL exe file
by RonW (Parson) on Jun 18, 2014 at 16:38 UTC

    As marto mentioned, pp (part of the PAR package) helps you make a self-contained executable. you do have to test it on several other PCs because pp can't always find all the needed DLLs, so you may have to manually add them.

    As for adding buttons and menus, there are several sets of modules for creating graphical user interfaces in Perl. I happen to use Tk. (Recently, I shared my Menu::Simple module that builds menus for Tk (and includes an example program).)