Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Is it possible to make Data::BISON work on perl >= 5.10

by Corion (Pope)
on Dec 23, 2012 at 10:15 UTC ( #1010085=note: print w/ replies, xml ) Need Help??


in reply to Is it possible to make Data::BISON work on perl >= 5.10

You don't tell us how it fails, so what do you expect us to do?

It seems that the error message is:

Recursive inheritance detected in package 'Data::BISON::Base' at /expo +rt/home/cpant2/.cpan/build/Data-BISON-v0.0.3-yJ_1N5/blib/lib/Data/BIS +ON/Base.pm line 110.

... so I expect that the sane approach would be to eliminate that recursive inheritance first.


Comment on Re: Is it possible to make Data::BISON work on perl >= 5.10
Download Code
Re^2: Is it possible to make Data::BISON work on perl >= 5.10
by Anonymous Monk on Dec 23, 2012 at 10:37 UTC
    Well, in fairness I mentioned the CPAN tester reports, which a linked on the distribution page. I looked at the code but I have no clue what to even try.

      My guess is, from looking at Data::BISON::Base, as the error message says, that the following piece in the custom method creator is to blame:

      ... { local @ISA = @{ $caller . '::ISA' }; $self->SUPER::__parse_args( $args ); } ...

      Most likely because the author didn't bother to clean up @ISA properly.

      But then, looking at the whole code, I wouldn't touch it because I don't understand why the author chose to do all method creation in a import subroutine instead of plainly declaring the methods outside and then using glob assignments to export them. Maybe you want to get in contact with the author to ask about the motivation and intent.

        I did manage to fix it by replacing the @ISA mess with
        __PACKAGE__->__parse_args($self, $args);
        I added a patch to the ticket, but I doubt the author will even look at it. He hasn't uploaded anything to CPAN in 2 years and has been ignoring all bug reports for his other modules for as long.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-10-02 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (49 votes), past polls