Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Re: Was my module used or required?

by Biker (Priest)
on Dec 06, 2002 at 11:13 UTC ( #218034=note: print w/replies, xml ) Need Help??

in reply to Re: Was my module used or required?
in thread Was my module used or required?

Excelent point, but only if my module would be a 'traditional' module using the Exporter.

This is an OO module. No export, no import. (Unless I've misunderstood something fundamental again. ;-)

Sorry I didn't mention that in my original post.

Everything went worng, just as foreseen.

  • Comment on Re: Re: Was my module used or required?

Replies are listed 'Best First'.
Re: Re: Re: Was my module used or required?
by mojotoad (Monsignor) on Dec 06, 2002 at 17:58 UTC
    You've probably already figured this out based on earlier answers, but the import() method is invoked regardless of whether you choose to inherit it from the Exporter module or not. In addition, there's no reason it has to actually import anything. In this sense, it's simply a hook you can use for anything you want when your module is invoked with use. Fear not for the sanctity of your OO model.


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://218034]
[LanX]: "DH" eq "Dumb Homies "?
[shmem]: no, no previous, and python just accepts that.
[LanX]: HA ... fun! =)
[LanX]: Py2 or 3 ?
[shmem]: moment... lemme see...
[shmem]: Python 2.7.9
[shmem]: but! perl4 doesn't suck.
[LanX]: better try 3

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

    Results (257 votes). Check out past polls.