From 5c1404211888c50c6ce052dae8e0bc6a62d5920d Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Thu, 19 Jan 2012 17:05:58 -0800 Subject: [PATCH] =?utf8?q?Document=20B::PV=E2=80=99s=20LEN=20and=20CUR=20m?= =?utf8?q?ethods?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- ext/B/B.pm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/ext/B/B.pm b/ext/B/B.pm index 36a6dad..66e4999 100644 --- a/ext/B/B.pm +++ b/ext/B/B.pm @@ -755,7 +755,17 @@ length information. It is the appropriate method to use if you need to get the name of a lexical variable from a padname array. Lexical variable names are always stored with a null terminator, and the length field -(SvCUR) is overloaded for other purposes and can't be relied on here. +(CUR) is overloaded for other purposes and can't be relied on here. + +=item CUR + +This method returns the internal length field, which consists of the number +of internal bytes, not necessarily the number of logical characters. + +=item LEN + +This method returns the number of bytes allocated (via malloc) for storing +the string. This is 0 if the scalar does not "own" the string. =back -- 2.7.4