in reply to Class doesn't inherit

Another thing that may not be causing you trouble right now... but you should wrap your @ISA initialization in a BEGIN block. Otherwise you could unexpectadly run into trouble later (if you get a convoluted use order).
------------ :Wq Not an editor command: Wq

Replies are listed 'Best First'.
Re: Re: Class doesn't inherit
by chip (Curate) on Mar 18, 2004 at 01:47 UTC
    insert obligatory reference to "use base" here

        -- Chip Salzenberg, Free-Floating Agent of Chaos

      Yes, absolutely, "use base" addresses this problem... when it works. Older versions of use base (like the version that come with 5.005_03, which is what I'm still stuck on) do not work properly, unfortunately.

      Granted, I'm not griping, because it looks like it's since been fixed... but also:

      BEGIN { @ISA = qw( Foo Bar ) }
      is really not that hard, either.
      ------------ :Wq Not an editor command: Wq
Re: Re: Class doesn't inherit
by ido50 (Scribe) on Mar 17, 2004 at 20:24 UTC
    Okay thanks.
    -------------------------
    Live fat, die young