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

Re: Module usage

by eye (Chaplain)
on Feb 26, 2009 at 09:59 UTC ( #746502=note: print w/replies, xml ) Need Help??

in reply to Module usage

Including a module with "use" reads the module and makes it available to your program within its own namespace. By default, many modules will export symbols (variables, functions, methods, etc.) into the "main::" namespace. This allows you access to these symbols without prefixing them with their proper namespace. Specifying a list of symbols with the "use" statement overrides the choice of symbols to export. When this list is empty, no symbols are exported. The symbols are still accessible by prefixing them with the namespace of the module.

Replies are listed 'Best First'.
Re^2: Module usage
by rir (Vicar) on Feb 27, 2009 at 03:21 UTC
    By default, many modules will export symbols ... into the "main::" namespace.

    That is incorrect, but it is often what happens because the use Module statement is in the package main. The symbols are exported to into the current namespace.

    Be well,

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://746502]
[MidLifeXis]: Although the previous one could be a b0rken PATH, I would need to dig for that.
[thezip]: I've got to go to meetings now. If anyone has further comments regarding Spreadsheet::XLSX deployment to Strawberry Perl 5.24.1, please /msg me -- thanks!
LanX has to go ... plans to crash with a car into a group of pythonistas while screaming "LARRY IS THE GREATEST"
LanX ... darn ... where is my car?
[choroba]: Haven't you crashed into a boar recently?
[1nickt]: TCLion how is that going?
[LanX]: could someone lend me a car?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (10)
As of 2017-03-23 17:30 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (291 votes). Check out past polls.