Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: use and require inside subs

by Tuppence (Pilgrim)
on Nov 02, 2004 at 23:57 UTC ( [id://404788]=note: print w/replies, xml ) Need Help??


in reply to use and require inside subs

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
use My:Script:Foo; My::Script::Foo->bar()
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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2025-05-23 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.