in reply to Perl library or new module?

Get a safari account on O'Reilly's and check out Perl Objects, References & Modules. I would suggest buying the book outright but the safari account lets you see if this is needed in your library before hand.

Quoting from the above:
Chapter 12 Using Modules
"A module is a building block for your program: a set of related subroutines and variables packaged so it can be reused."
That defines what you are doing.

I would also suggest these resources:

"No matter where you go, there you are." BB