Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Embed perl or Gtk2-perl?

by Kirsle (Pilgrim)
on Nov 06, 2009 at 18:53 UTC ( #805555=note: print w/replies, xml ) Need Help??


in reply to Embed perl or Gtk2-perl?

If Gtk2-Perl is too difficult to install, you could just install it once on your system and compile your Perl script into an EXE to distribute it to others... then the users don't need Gtk2-Perl, or even Perl itself, to be able to run your program.

If this is for Win32-only you could also consider Win32::GUI as the UI toolkit which would provide a more native look-and-feel to your app... or you can use Tk, which looks almost native on Win32 (there's only very small quirks about it that make it stand out from regular Win32 apps, such as the active button doesn't get a dotted-line border around it, and disabled text isn't sunken in but just solid grey, but for the most part it fits in on Windows). Perl/Tk is very easy to install on Windows, as is Win32::GUI.

For compiling your Perl app into an EXE, look into pp (PAR::Packer) for a free/open source solution, PerlApp from ActiveState for a commercial version (it's the best compiler I've ever used)... and then there's also perl2exe, also commercial, but I've had trouble getting it to work on some of my perl scripts.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://805555]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2021-09-18 14:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?