From 9090718a57d0f7533af9b7c5d8eb89ee636fb661 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Thu, 5 Sep 2013 00:38:53 -0700 Subject: [PATCH] Update perlguts for the magic flags changes in 5.18 --- pod/perlguts.pod | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pod/perlguts.pod b/pod/perlguts.pod index dd0dca1..70b9187 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -316,9 +316,11 @@ These will tell you if you truly have an integer, double, or string pointer stored in your SV. The "p" stands for private. There are various ways in which the private and public flags may differ. -For example, a tied SV may have a valid underlying value in the IV slot -(so SvIOKp is true), but the data should be accessed via the FETCH -routine rather than directly, so SvIOK is false. Another is when +For example, in perl 5.16 and earlier a tied SV may have a valid +underlying value in the IV slot (so SvIOKp is true), but the data +should be accessed via the FETCH routine rather than directly, +so SvIOK is false. (In perl 5.18 onwards, tied scalars use +the flags the same way as untied scalars.) Another is when numeric conversion has occurred and precision has been lost: only the private flag is set on 'lossy' values. So when an NV is converted to an IV with loss, SvIOKp, SvNOKp and SvNOK will be set, while SvIOK wont be. -- 2.7.4