Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Re: DWIM: autoloading classes

by liz (Monsignor)
on Sep 18, 2003 at 07:00 UTC ( [id://292329]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: DWIM: autoloading classes
in thread DWIM: autoloading classes

Not that I want to export anything: I do everything OO and nothing gets exported in my modules. If there are any global flags that would need to be set, I use class method accessors for them.

But anyway, but I fail to see what more evil things you could do with an exporter that you couldn't already do.

So what ev(i|a)l things exactly are you referring to?

Liz

Replies are listed 'Best First'.
Re: Re: Re: Re: DWIM: autoloading classes
by tsee (Curate) on Sep 18, 2003 at 16:59 UTC

    Stuff like string eval of changing to the calling package and invoking the import routine from there. Then go back to the (main module) package you were using to load the other modules.
    I don't know whether that's already enough to fool caller().

    Steffen

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-24 20:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found