As a matter of fact, I posted a node yesterday that has a "module" in the same file as a working program. It's OO so there's no Exporter crap. Uh.. Crap. I can't figure out how to link to the node in Perlmonks. Too much on my brain today.
Go to the Code section, and it's called "Perl/Tk Space Invaders Sprite Class"