@@ -11306,16 +11306,24 @@ Perl_sv_setref_nv(pTHX_ SV *const rv, const char *const classname, const NV nv)
1130611306}
1130711307
1130811308/*
11309- =for apidoc sv_setref_pvn
11309+ =for apidoc sv_setref_pvn
11310+ =for apidoc_item sv_setref_pvs
1131011311
11311- Copies a string into a new SV, optionally blessing the SV. The length of the
11312- string must be specified with C<n> . The C<rv> argument will be upgraded to
11313- an RV. That RV will be modified to point to the new SV. The C<classname>
11314- argument indicates the package for the blessing. Set C<classname> to
11315- C< NULL> to avoid the blessing. The new SV will have a reference count
11316- of 1, and the RV will be returned.
11312+ These each copy a string into a new SV, optionally blessing the SV.
11313+ The C<rv> argument will be upgraded to an RV . That RV will be modified to
11314+ point to the new SV.
11315+ The C<classname> argument indicates the package for the blessing.
11316+ Set C<classname> to C< NULL> to avoid the blessing.
11317+ The new SV will have a reference count of 1, and the RV will be returned.
1131711318
11318- Note that C<sv_setref_pv> copies the pointer while this copies the string.
11319+ The forms differ only in how the source string is specified.
11320+
11321+ C<sv_setref_pvs> takes a C string literal enclosed in double quotes.
11322+
11323+ In C<sv_setref_pvn>, C<n> is the length of the string parameter C<pv> in
11324+ bytes. Hence the latter may contain embedded NUL characters.
11325+
11326+ Note that C<L</sv_setref_pv>> copies the pointer while these copy the string.
1131911327
1132011328=cut
1132111329*/
0 commit comments