Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^4: when is a perl module executed?

by blazar (Canon)
on Jul 18, 2008 at 22:40 UTC ( #698752=note: print w/replies, xml ) Need Help??

in reply to Re^3: when is a perl module executed?
in thread when is a perl module executed?

I personally believe that you're confused (and incidentally the way you like to write tends to confirm that you are:) people clearly told you that you can have code out of subs in modules. That is, it's valid Perl. People generally use modules as collections of reusable code: subs to be imported as additions to the builtins or methods of some class. There's no reason they shouldn't also do things. Indeed, they often have to, to "initialize" in some way or another those collections of code. For example, think of a module which will connect to some site to retrieve some info and build suitable "constants" - it's not that strange...

If you can't understand the incipit, then please check the IPB Campaign.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://698752]
[choroba]: does your list start with number 5?
[LanX]: -i
LanX it's an imaginary list ...
LanX ... reflecting root problems
choroba uses real lists so he can easily insert as many items in between as needed
LanX questions the integerity of this approach. ..
LanX doesn't sound natural

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (16)
As of 2018-03-20 10:27 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (249 votes). Check out past polls.