develooper Front page | perl.perl5.porters | Postings from April 2018

[perl #50608] Storable does not store REGEXP items

Thread Next
From:
slaven@rezic.de via RT
Date:
April 4, 2018 09:07
Subject:
[perl #50608] Storable does not store REGEXP items
Message ID:
rt-4.0.24-8292-1522832823-1574.50608-15-0@perl.org
Dana Wed, 06 Feb 2008 23:42:33 -0800, sand@franz.ak.mind.de reče:
> 
> This is a bug report for perl from sand@k75.linux.bogus,
> generated with the help of perlbug 1.36 running under perl 5.11.0.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> use Storable; Storable::dclone qr/foo/;
> 
> gives
> 
> Can't store REGEXP items at -e line 1.
> 
> 
> 
> [Please do not change anything below this line]
> -----------------------------------------------------------------

It was not really advertized, but starting with Storable 3.06 which is part of perl 5.27.9 and later there's experimental regexp support built in. The above code line does not fail anymore, and seems to do the right thing:

    $ perl5.27.10 -e 'use Storable; use Data::Dumper; warn Dumper Storable::dclone qr/foo/;'
    $VAR1 = qr/foo/;

Now it would be nice if there was a CPAN release of this Storable version, so older perls can also use the new feature.


---
via perlbug:  queue: perl5 status: stalled
https://rt.perl.org/Ticket/Display.html?id=50608

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