Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://670496]
help
Chatterbox?
[GotToBTru]: set -o vi works in shell command line, but debugger doesn't recognize backspace or arrow keys

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2017-07-26 14:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (396 votes). Check out past polls.