Perl-tk Programming

Delivery Perl scripting for the 2nd batch of eGT students from Intel Malaysia at USains recently, in the hope of spicing up the final class project a bit, we experimented with using Tk GUI engine with Perl running in the backend. Via the simple GUI perl module, we manage to use the Canvas from Tk to do simple sprite and animation, we also rely on the Tk to handle the user interaction through the mouse and the keyboard.

As a demo, we write up a classic snake game purely in Perl.

Snake_perlIf you want to try it out, download the source code here File_icon

Leave A Comment?