note
kschwab
<p>There does look like one possibility. Perlguts mentions that with Perl 5.16 and earlier:
<i>Copy-on-write (see the next section) shared a flag bit with read-only scalars. So the only way to test whether sv_setsv , etc., will raise a "Modification of a read-only value" error in those versions is: SvREADONLY(sv) && !SvIsCOW(sv)</i></p>
<p>Scalar::Util <a href="https://metacpan.org/source/PEVANS/Scalar-List-Utils-1.50/ListUtil.xs#L1415">doesn't do anything special</a> for 5.16 or earlier, so it could have false positives in that case. Of course, 5.18 (where it's fixed) was released in 2013 :)</p>
142350
1227894