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

Re^2: 'base' versus @ISA, why?

by bart (Canon)
on Jul 23, 2007 at 10:56 UTC ( [id://628203]=note: print w/replies, xml ) Need Help??


in reply to Re: 'base' versus @ISA, why?
in thread 'base' versus @ISA, why?

... and it automatically loads the parent module.
Sometimes.

base is a pretty unreliable module, in my experience, and it must be related to the heuristic method it uses to determine whether a module file needs to be loaded, or not. Sometimes, it guesses wrong.

update Apparently tye has had similar experiences.

Replies are listed 'Best First'.
Re^3: 'base' versus @ISA, why?
by perrin (Chancellor) on Jul 23, 2007 at 15:47 UTC
    Looking at the source, I don't see it doing anything except checking if the module is already in your @ISA. That seems pretty sane to me.
      It's checking ${"$package\::VERSION"} or something to that effect, while a package is not required to have a $VERSION variable.

      Maybe its behavior has been sanitized, but the damage is done. My trust has been shaken.

        Hmm, none of my classes have $VERSION declarations, and base has never given me any trouble about it.

Log In?
Username:
Password:

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

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

    No recent polls found