in reply to Re: 2-argument bless not working?!
in thread why is a 2-argument bless not working in my situation

I know 'use base' does an implicit 'require', but sometimes ... That part of the program is working fine, the 'getvar' function checks %ENV and a config-file for clues on what to use. The whole program just uses 1 instance of Fiets::Cache.

Thanks a lot, I totally missed the $self there!

Replies are listed 'Best First'.
Re: Re: Re: 2-argument bless not working?!
by djantzen (Priest) on Mar 31, 2004 at 10:48 UTC

    Are you sure you're inheritance chain is being set up properly? use and base are compile-time directives, which means that it doesn't matter where they appear in your code, they'll be executed before your code runs. If it's running as expected, that is, you're able to find the inherited methods when you call them on an instance of your subclass, then I would think you've got some multiple inheritance going on. If you truly want those to be set at runtime, I'd use require and manually adjust the @ISA array.


    "The dead do not recognize context" -- Kai, Lexx