in reply to triyng to built a module

If you want to learn how to do modules, I'd strongly suggest you getting and fully reading a book called "Object Oriented Perl" by Damian Conway. In addition to modules, the first 50 or so pages are a very good overview of Perl. I think you need to work thru that first before you head into modules ... although modules are a good goal.

HTH...