Recursive inheritance after using h2xs

Discussion in 'Perl Misc' started by Ken Weaverling, Oct 19, 2003.

  1. I'm going a bit nuts after trying to build a package with h2xs and
    getting the error...

    Recursive inheritance detected while looking for method 'import' in package...

    I tried to simplify it down as much as possible, so I took the "empty
    subclass test" example out of Perl Cookbook, section 13.9 and plugged
    it into the .pm file produced by h2xs and get the above error soon as
    I try to call new from a script that uses that package.

    All the texts I've read show how to do classes, packages, modules,
    but nothing seems to put it all together! :)

    A gentle nudge would be must appreciated. Thanks

    --

    Ken Weaverling (ken @ weaverling.org) WHOIS: KJW http://www.weaverling.org/
    Ken Weaverling, Oct 19, 2003
    #1
    1. Advertising

  2. In article <bmuhbs$5mu$>,
    Ken Weaverling <> wrote:
    >I'm going a bit nuts after trying to build a package with h2xs and
    >getting the error...
    >
    >Recursive inheritance detected while looking for method 'import' in package...


    Looks like if I do something like....

    Package Subclass;
    @Subclass::ISA('ParentClass');

    .... then it all works as intended -- I think... :)

    Now to try and fold this into my larger project...

    --

    Ken Weaverling (ken @ weaverling.org) WHOIS: KJW http://www.weaverling.org/
    Ken Weaverling, Oct 19, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Compiling with H2XS.

    , Jul 7, 2003, in forum: Perl
    Replies:
    0
    Views:
    1,751
  2. Hale

    h2xs

    Hale, Dec 20, 2003, in forum: Perl
    Replies:
    0
    Views:
    742
  3. Compiling the h2xs way.

    , Jul 7, 2003, in forum: Perl Misc
    Replies:
    2
    Views:
    123
  4. Clint Olsen
    Replies:
    1
    Views:
    104
    Tassilo v. Parseval
    Oct 16, 2003
  5. freeholder
    Replies:
    3
    Views:
    208
    Ilya Zakharevich
    Aug 4, 2006
Loading...

Share This Page