This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[win32] Fix autovivification problems with XSUB OUTPUT args
[perl5.git] / pod / perlxs.pod
index 6629af2..d257b19 100644 (file)
@@ -268,14 +268,17 @@ be seen by Perl.
 
 The OUTPUT: keyword will also allow an output parameter to
 be mapped to a matching piece of code rather than to a
-typemap.
+typemap.  The following duplicates the behavior of the
+typemap:
 
      bool_t
      rpcb_gettime(host,timep)
           char *host
           time_t &timep
           OUTPUT:
-          timep sv_setnv(ST(1), (double)timep);
+          timep SvSetMagicNV(ST(1), (double)timep);
+
+See L<perlguts> for details about C<SvSetMagicNV()>.
 
 =head2 The CODE: Keyword