Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Code style advice: where to put "use" statements?

by apl (Monsignor)
on Feb 27, 2008 at 05:49 UTC ( #670496=note: print w/ replies, xml ) Need Help??


in reply to Code style advice: where to put "use" statements?

The original implementor may have been thinking about moving some_function to a module. In any event, I'd move the statement to the top of the source as

use SomeModule;  # employed solely by sub some_function as of YY/MM/DD

YMMV.


Comment on Re: Code style advice: where to put "use" statements?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (19)
As of 2015-07-02 17:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls