|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: use and require inside subsby Tuppence (Pilgrim) |
| on Nov 02, 2004 at 18:57 UTC ( [id://404788]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Personally, I force all of my code to be in modules. For development I sometimes do actual perl code in my .pl scripts, but for the most part my scripts all look like
This allows me to test all of my scripts by ensuring all of my modules are fully tested, and helps me organise my code by functional units instead of just throwing various and sundry subs into my scripts.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||