Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Perl Module Useage

by Improv (Pilgrim)
on Apr 10, 2003 at 12:52 UTC ( [id://249596]=note: print w/replies, xml ) Need Help??


in reply to Perl Module Useage

Practice differs in this area, but I would suggest the following guidelines:
  • If you use it all over the place, it should probably be in a package or some other shared place so if you enchance or bugfix it one place, you don't need to hunt down all other copies
  • If you want to share it, it's easier for people to take your code as a package/module than to cut'n'paste it, and it makes version tracking easier
  • Of course, if you're doing objects, it's best to put them into packages :)
In short, packages/modules are usually a good thing, provided the borders between them are sensible, and provided you have time to structure your code that way. It doesn't hurt if you start new coding projects programming entirely in that fashion. That way, you'll develop nice templates and tools to help you, and once you get used to it, any moderately big application (or set of small ones) will be just as quick to implement that way as the flat way.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://249596]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-23 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found