Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by talexb (Canon)
on Feb 28, 2008 at 04:11 UTC ( #670818=note: print w/replies, xml ) Need Help??


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

Unless a module really only applies to a very small scope, I put all of my use statements up at the top of the file.

But if there's a piece of Perl code that needs to run as quickly as possible, I'd probably re-consider that approach. :)

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://670818]
help
Chatterbox?
[shmem]: Discipulus: the <<>> operator is quite new, it is in perl5.24 for instance
[Discipulus]: ah! thanks shmem it works in strawberry 5.24
[shmem]: ah. Introduced in 5.22.0, see perl5220delta
[Discipulus]: if so the previous error is a bit misleading, anyway

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-07-21 09:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (319 votes). Check out past polls.