This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlguts: clarify SV types which are scalars
authorDavid Mitchell <davem@iabyn.com>
Mon, 19 Nov 2018 16:28:03 +0000 (16:28 +0000)
committerDavid Mitchell <davem@iabyn.com>
Mon, 19 Nov 2018 16:28:03 +0000 (16:28 +0000)
The '< SVt_PVAV' entry looked to one reader like malformed HTML
rather than indicating a numerical range.

http://nntp.perl.org/group/perl.perl5.porters/252585

pod/perlguts.pod

index 16bd0ec..5f33bbb 100644 (file)
@@ -681,12 +681,14 @@ macro and then check the return value.
 
 The most useful types that will be returned are:
 
-    < SVt_PVAV  Scalar
     SVt_PVAV    Array
     SVt_PVHV    Hash
     SVt_PVCV    Code
     SVt_PVGV    Glob (possibly a file handle)
 
+Any numerical value returned which is less than SVt_PVAV will be a scalar
+of some form.
+
 See L<perlapi/svtype> for more details.
 
 =head2 Blessed References and Class Objects