Beefy Boxes and Bandwidth Generously Provided by pair Networks DiBona
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: DWIM: autoloading classes

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 12: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.