I was just wandering around this place and read How a script becomes a module by brian_d_foy. It walks through exactly what you want to do. Start with script, change code, make code an internal to the script module ...
Joe Bob sez check it out.In reply to Re: Can I do single-file, Object oriented perl?
by mikeraz
in thread Can I do single-file, Object oriented perl?
by FatDog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |