avoid more vivification in Carp
authorZefram <zefram@fysh.org>
Thu, 22 Aug 2013 21:29:08 +0000 (22:29 +0100)
committerZefram <zefram@fysh.org>
Thu, 22 Aug 2013 21:33:23 +0000 (22:33 +0100)
commitbd098b9ac583eefaa2df23e3b12fcae8a50321db
tree0bcb0a741c1033969adb74d3ca2836ffc3b33976
parent91efe593b9fc36e1b11b94485a57ad03ae416cce
avoid more vivification in Carp

Avoid vivifying the overload::StrVal subroutine, its glob, or its stash.
This is done in the same way as the existing avoidance of vivification of
utf8::is_utf8 and utf8::downgrade.  However, the check has to be made at
runtime, whereas the utf8-related ones are checked at load time, because
the utf8 ones are built into the perl core (only absent pre perl 5.8)
but overload is a separate module that can be loaded later.
dist/Carp/lib/Carp.pm
dist/Carp/t/vivify_gv.t
dist/Carp/t/vivify_stash.t
pod/perldelta.pod