Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: use of "use X"

by Anonymous Monk
on Jan 18, 2012 at 16:01 UTC ( #948580=note: print w/replies, xml ) Need Help??


in reply to use of "use X"

To a certain extent, the use declaration is, shall we say, “overloaded.”   In some ways it is a lot like require, whereas in other ways it absolutely is not.   Here is another case where Perl might have infuriated semantic purists, in favor of being a pragmatically useful tool.   I suggest that you always treat the statement as a declaration, not as an executable statement.   Put all of the necessary declarations at the beginning of the module (beginning always with use strict; use warnings;), and leave them there.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (2)
As of 2022-08-10 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?