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


in reply to Name spaces and Perl::Tk coding style

No you're right to break things into different modules. As for whether or not to use OO I would suggest using whatever is comfortable.

And use whatever namespace you want. If you app is called foo.pl I'd create Foo::Widgets or something.

I agree Tk and most GUI widget sets are unwieldy to code with. One think you might think about is using Glade and Gtk2::GladeXML. This lets you "draw" your GUI, which is defined in an XML file, that that CPAN module reads and does all of the "building" for you. You then just write the callbacks and the portion you need to modify.

Hope this helps.

Frank Wiles <frank@wiles.org>
http://www.wiles.org