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

Re: Just starting Perl

by Anonymous Monk
on May 06, 2008 at 19:20 UTC ( [id://685054]=note: print w/replies, xml ) Need Help??


in reply to Just starting Perl

Regarding GUI app with Perl, your question is really a two-parter:

  1. Which toolkit do I use? -- Tough question without a really good answer. Tk is regarded as simple and easy for small stuff, but it's also ancient and (from what I can tell) poorly-documented. gtk2-perl hasn't generated a lot of excitement, but it's probably the closest thing there is to a standard. wx looks a lot like Windows programming and is huge. qt has licensing issues if you ever want to write proprietary software.
  2. How do I compile my GUI program to an exe? -- In my experience, this isn't done very often. The most common scenario is to just make a list of dependencies and have your users install them before running your script. They can install the deps either using the CPANPLUS (or CPAN) shell, or else using their OS's package management system.

Modern Perl 5 is fun and fairly easy -- as long as you stay away from some pointy corners like typeglobs and subroutine prototypes. And tied variables (yikes!). Oh, and threads. Did you ever have that dream where you're in class in front of everyone, and you notice it's a bit too quiet so you look up from your laptop and realize that everyone is just beginning to notice that you used threads and are having some kind of synchronization problem and you're thinking you might use pdb and the beads of sweat start running down your forehead?

Replies are listed 'Best First'.
Re^2: Just starting Perl
by Erez (Priest) on May 07, 2008 at 06:50 UTC

    but it's also ancient and (from what I can tell) poorly-documented

    I beg to differ.

    Tk's recent update is Dec 2007, which isn't "old". The ToolKit has been around for a while (since about 91), but so has wx (92), and I prefer something that is being developed for awhile rather than a new toolkit that might still have some wrinkles and dark corners.

    Tk is also as well documented (as any other Perl module), and has a whole book dedicated to it (Mastering Perl/Tk, ISBN 1565927168), which isn't something other Perl GUI ports/bindings has. It's also very Perlish in its API and very comfortable to work with in a Perl environment.

    Stop saying 'script'. Stop saying 'line-noise'.
    We have nothing to lose but our metaphors.

Re^2: Just starting Perl
by Anonymous Monk on May 06, 2008 at 19:25 UTC
    Typo: s/pdb/perl -d/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 20:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found