develooper Front page | perl.perl5.porters | Postings from December 2008

Re: Storable

Thread Previous | Thread Next
From:
Jonathan Blaine
Date:
December 15, 2008 09:11
Subject:
Re: Storable
Message ID:
fd6fe7cf0812150834s4d54f6dcr527443cf95b4105e@mail.gmail.com
I'd love to upgrade perl on the production boxes, at least to 5.8.8.
Can you tell me, in general (i.e. I'm not going to blame you if it fails)  if
I ZIP up/backup  the perl installation as it is now, install 5.8.8, and
encounter problems with existing scripts, can I simply replace the perl
directory with the backed-up version and be back to functional?  I remember
being told that long ago (5.6.x) but I've never had the occasion to try it,
and heaven knows things may have changed by now.

Thank you,

Jonathan


On Sun, Dec 14, 2008 at 9:48 AM, Nicholas Clark <nick@ccl4.org> wrote:

> On Fri, Dec 12, 2008 at 03:38:40PM -0500, Jonathan Blaine wrote:
>
> > (on version 2.18)
> > S:\>Test_Storable.pl S
> >
> > (on version 2.15)
> > S:\>Test_Storable.pl L
> >
> > Storable binary image v2.7 more recent than I am (v2.6) at
> > ..\..\lib\Storable.pm (autosplit into ..\..\lib\auto\Storable\_
> retrieve.al)
> > line 323, at \\storage1\webs$\data\test_storable.pl line 9
>
> That's not 2.15 you're using there. At least, not a proper 2.15.
>
> I get the same as you when I try a stock 5.8.2 install:
>
> $ ~/Sandpit/582/bin/perl Test_Storable.pl
> Storable binary image v2.7 more recent than I am (v2.6) at
> ../../lib/Storable.pm (autosplit into ../../lib/auto/Storable/_retrieve.al)
> line 323, at Test_Storable.pl line 10
> $
>
> However, if I build and install Storable 2.15 against 5.8.2 I see this:
>
> $ ~/Sandpit/582/bin/perl Test_Storable.pl
> $
>
> If you look at the source code for 2.15, for example here:
>
> http://search.cpan.org/src/AMS/Storable-2.15/Storable.xs
>
> You'll see that it has
>
> #define STORABLE_BIN_MAJOR      2               /* Binary major "version"
> */
> #define STORABLE_BIN_MINOR      7               /* Binary minor "version"
> */
>
> so its "minor" version is 7, the same as 2.18.
>
> Digging up the annotated change history of Storable.xs
>
> http://public.activestate.com/cgi-bin/perlbrowse/b/ext/Storable/Storable.xs
>
> I see that the change of MINOR from 6 to 7 was this:
>
> http://public.activestate.com/cgi-bin/perlbrowse/p/23079
>
> Change 23079 by nicholas@ship-in-a-bottle on 2004/07/10 21:58:34
>
>        Store weak references.
>
>
> In turn, Storable's ChangeLog suggests that that change was released as
> part of
> version 2.11:
>
> Sat Mar 13 20:11:03 GMT 2004   Nicholas Clark <nick@ccl4.org>
>
>    Version 2.11
>
>        1. Storing restricted hashes in canonical order would SEGV. Fixed.
>        2. It was impossible to retrieve references to PL_sv_no and and
>           PL_sv_undef from STORABLE_thaw hooks.
>        3. restrict.t was failing on 5.8.0, due to 5.8.0's unique
>           implementation of restricted hashes using PL_sv_undef
>        4. These changes allow a space optimisation for restricted hashes.
>
>
>
> Your error message implies that the Storable you have installed is version
> 2.10, not 2.15, as STORABLE_BIN_MINOR was changed from 5 to 6 with this:
>
> http://public.activestate.com/cgi-bin/perlbrowse/p/17741
>
> Change 17741 by hv@hv-crypt.org on 2002/08/20 14:20:16
>
>        Subject: Re: [PATCH] Storable and CODE references
>        From: Slaven Rezic <slaven.rezic@berlin.de>
>        Date: 17 Aug 2002 21:58:03 +0200
>        Message-id: <87bs812r78.fsf@vran.herceg.de>
>
>
> which appears to have been released with Storable 2.10
>
> Nicholas Clark
>

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About