Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Problem with script from PC to laptop

by Jouke (Curate)
on Apr 13, 2004 at 18:03 UTC ( #344816=note: print w/replies, xml ) Need Help??

in reply to "Storable object version 1.012 does not match $Storable::VERSION 2.04" moving script from PC to laptop

The solution is simple: you have different versions of Perl installed on the two machines. You moved the script from the PC, which probably runs an old Perl version, which had a storable datafile which was moved to the laptop too.
The Perl version (actually Storable version) on the laptop can't read that datafile, because it was created with an incompatible Storable version.

When you install the Perl version you had on the PC on the laptop, you can read the file again on the laptop, and the script will most likely run.

update: Most important of this is that the version of the Storable module on both machines *must* be different

Jouke Visser, Perl 'Adept'
Using Perl to help the disabled: pVoice and pStory
  • Comment on Re: Problem with script from PC to laptop

Replies are listed 'Best First'.
Re: Re: Problem with script from PC to laptop
by saintmike (Vicar) on Apr 13, 2004 at 18:12 UTC
    If you need to migrate existing Storable data from one machine to another, use something like dumpsto (documentation here) to first transform the data into Data::Dumper format:
    dumpsto storable-file >data.dump
    Then, transfer data.dump over to the new machine, and run dumpsto there:
    dumpsto -u data.dump >storable-file
    After that, storable-file will have your data in a format readable by the new perl installation.
    A reply falls below the community's threshold of quality. You may see it by logging in.
Re: Re: Problem with script from PC to laptop
by stu96art (Scribe) on Apr 13, 2004 at 21:09 UTC
    When I ran perl -v and perl -V I got the same results on both machines. I am still a little confused on what I need to do. I do really appreciate all of your help, but I am wondering whether I need to put that code into my script? or just from the command prompt? I apologize, but I am not at all familiar with any of this.
    What I believe that I did what possibly download one version of perl, initially on my laptop, then downloaded this current version, which is the same as my PC version. Thus I expected for Storable to be included the same as it was on my PC. I think that I am missing something. Could someone please explain this to me??
      Your Storable install is fubared. The solution is to reinstall Storable.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2021-10-21 05:37 GMT
Find Nodes?
    Voting Booth?
    My first memorable Perl project was:

    Results (82 votes). Check out past polls.