in reply to OO Perl and Tk

I've been thinking along the same lines. I've been working on a complex procedural Tk game, and it's finally dawning on me how much cleaner it would be if each player was an object.

I don't know "how well written" it is, since I'm a procedural programmer myself, but I did make a TripleRotatingWheel demo, which made it into the Tk::Zinc "user-contributed-examples". It does demonstrate how to make a "Wheel Class" and use it. I's about as simple as you can get. You might want to check out the 'zinc-demos' too, it has quite a bit of nice code examples.

TripleRotatingWheel


I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: OO Perl and Tk
by jdtoronto (Prior) on Sep 09, 2004 at 20:15 UTC
    zentara:

    I have downloaded your code and will paw over it tonight when I have some time. It looks neat, and although I have looked at Tk::Zinc before I have never had a chance to use it.

    My biggest enemy is time. I wish I could just spend the time necessary to learn all these new techniques - but nobody wants to pay for that!

    jdtoronto

      Time, yes time. Although I don't see Time as an enemy, I can understand your situation. I have plenty of time, but then again, all I own is a computer, a hotplate, and my bicycle. Life is a bunch of trade-offs, isn't it? I spend my time hacking at Perl, to make the days "pass faster", too much time gets to be boring. Thank God for Perl. :-)

      I'm not really a human, but I play one on earth. flash japh