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

Data::Dumper version

by maidou (Initiate)
on Jan 09, 2012 at 11:25 UTC ( #946990=perlquestion: print w/replies, xml ) Need Help??
maidou has asked for the wisdom of the Perl Monks concerning the following question:

Hi,guys. I'm a beginner. When I updated perl to v.5.14.2 today, I met with a problem 'Data::Dumper object version 2.130_02 does not match $Data::Dumper::VERSION 2.131 at /usr/lib/perl5/core_perl/ line 213.' What does it mean? I have also upgraded the Data::Dumper module, the Database was generated on Mon, 09 Jan 2012 07:12:51 GMT Data::Dumper is up to date (2.131). What may be the reason of this problem? How can I solve this problem? Thank you.

Replies are listed 'Best First'.
Re: Data::Dumper version
by Jenda (Abbot) on Jan 09, 2012 at 15:51 UTC

    Seems the updated Data::Dumper saved some of its files into a different directory than the old copied one so you ended up with loading .pm from one version and the compiled part (file extension is operating system dependent) from the old version. You'll have to hunt down and delete the old version.

    Enoch was right!
    Enjoy the last years of Rome.

Re: Data::Dumper version
by Anonymous Monk on Jan 09, 2012 at 11:38 UTC
    You did not upgrade correctly, see explanation below. To repair this, you need to run the extra build steps. Use a CPAN client to automate this. Force the installation if necessary.

    You are getting the error message because the compiled XS part does not match the Perl part of the modules. You upgraded one, but not the other. It is wrong to just copy .pm files around.

      You refer to a perldoc page ("extra build steps") but clarification of exactly what to do with that information would be helpful for posterity . . . if not for the OP then for the next Monk.
      The OP obviously did use the `cpan` client, as you see they mentioned "Database was generated on...." and "Data::Dumper is up to date".
Re: Data::Dumper version
by ansh batra (Friar) on Jan 09, 2012 at 12:50 UTC
    try editting /usr/lib/perl5/core_perl/
    replace 2.131 to 2.130_02
    i am not sure but i have used this hack before and it worked for me

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://946990]
Approved by Corion
Front-paged by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2018-02-25 02:56 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (312 votes). Check out past polls.