This is wrong. It seems that what gets peephole optimised
(in this case named method calls into shared string scalars) depends
on whether there is a shared perl library.
Anyway, fix the symptom - the coredump.
p4raw-id: //depot/perl@24841
{
my $strtab = strtab();
is (ref $strtab, 'HASH', "The shared string table quacks like a hash");
+ my $wibble = "\0";
eval {
- $strtab->{wibble}++;
+ $strtab->{$wibble}++;
};
my $prefix = "Cannot modify shared string table in hv_";
my $what = $prefix . 'fetch';