in reply to OO Perl and Tk

I wrote a Tetris clone called Spew using OOPerl and Tk. The source code is included along with a windows binary. Download Spew here The main problem I've come across with OOPerl and Tk is that you still kind of have to treat the MainWindow object as a global variable. I get around that by passing in the MainWindow object as a variable to the objects that need it.

-----------------------------------
Washizu
Acoustic Rock

Replies are listed 'Best First'.
Re^2: OO Perl and Tk
by Courage (Parson) on Sep 12, 2004 at 23:02 UTC
    how can I be sure your code does nothing harmful to my system?

    From browsing your files I see exactly opposite: your files contain very suspicious things, like walking in 'my documents' and large self-unpacking and doing-what-they-want executables.

      Of course, you could only be sure by inspecting every line of code in there. There is only one line where I make a local reference.
      use lib 'C:\Documents and Settings\Ben Garvey\My Documents\spintris\li +b';
      That was so perl2exe could compile the thing. For some reason it can't compile it if you use a relative path even though it works fine through the script. To get start.pl to run properly you'd have to change it to this for your system.
      #use lib 'C:\Documents and Settings\Ben Garvey\My Documents\spintris\l +ib'; use lib 'lib';
      The executable is for people who want to try the game out but don't have perl and all the libraries installed. There are no self-unpacking files. There is a zip file that puts files into directories when installed, but only sub directories inside the one you unzip to. Lastly, the program is for download on a website that has far too much personal information about me to allow me to get away with anything nefarious. Feel free to call me on any evil code. It's all there to see.

      -----------------------------------
      Washizu
      Acoustic Rock

        Actually I was not very serious.

        Sorry

      Sorry to hijack this thread yet again, but here are some screenshots of the game.

      -----------------------------------
      Washizu
      Acoustic Rock