Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

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.
      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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://344816]
[perldigious]: If you want a linguistic adventure...
[perldigious]: No offense to any Scotsman, I love Scots. Well actually, I love Scotch, but I'm sure the people are great too. :-P
[Discipulus]: perldigious i understand i word on ten, to be optimistic..
LanX will try to give his next LPW talk with a Cogney intonation
[Discipulus]: if you love Scotch in scotland your safety will be.. glengranted
[LanX]: *Cockney

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2017-06-23 16:50 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (552 votes). Check out past polls.