Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

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
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.
      Thats completely unneccessary. Is you use nstore* instead of store* functions, your file is already crossplatform. His problem was that his Storable install is fubared.
        No --- newer Storable versions emit files which cannot be read by older Storable versions.
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2014-07-14 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (268 votes), past polls