develooper Front page | perl.perl5.porters | Postings from October 2018

pod/perlguts.pod is wrong

Thread Next
From:
Konovalov, Vadim
Date:
October 21, 2018 17:57
Subject:
pod/perlguts.pod is wrong
Message ID:
8FC9F990A991F24AA0166C36379560B980E87EBF@MX202CL01.corp.emc.com
http://perldoc.perl.org/perlguts.html#References reads:

The most useful types that will be returned are:
1.     < SVt_PVAV  Scalar
2.     SVt_PVAV    Array
3.     SVt_PVHV    Hash
4.     SVt_PVCV    Code
5.     SVt_PVGV    Glob (possibly a file handle)
Seešhttp://perldoc.perl.org/perlapi.html#svtypešfor more details.

Both 5.26 and 5.28 are affected

Perl5.8.8 is better in this:

    SvTYPE(SvRV(SV*))

The most useful types that will be returned are:

    SVt_IV    Scalar
    SVt_NV    Scalar
    SVt_PV    Scalar
    SVt_RV    Scalar
    SVt_PVAV  Array
    SVt_PVHV  Hash
    SVt_PVCV  Code
    SVt_PVGV  Glob (possible a file handle)
    SVt_PVMG  Blessed or Magical Scalar

    See the sv.h header file for more details.

Vadim

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About