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

[perl #29070] Deparsing v-string operands to ~ loses the ~

Thread Next
Father Chrysostomos via RT
December 23, 2011 09:59
[perl #29070] Deparsing v-string operands to ~ loses the ~
Message ID:
On Thu Jul 26 05:08:19 2007, wrote:
> Better to patch
> B::Deparse to make an effort to see whether the original string
> representation
> is still valid (though I have this vague memory that code in toke.c is
> not part
> of the public API, and hence is not available to use here).

It’s not just B::Deparse, but the version module, too, that is affected:

$ ./perl -Ilib -le 'print version->new(~v165);

And constant folding is not where the problem lies:

$ ./perl -Ilib -le 'print new version ~$_ for "\xce", v2, "\xcc"'


Father Chrysostomos

via perlbug:  queue: perl5 status: open

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About