diff options
author | Perl 5 Porters <perl5-porters@africa.nicoh.com> | 1996-03-22 04:52:41 +0000 |
---|---|---|
committer | Charles Bailey <bailey@genetics.upenn.edu> | 1996-03-22 04:52:41 +0000 |
commit | 1faa3dee5e3a2f365ca0794827258b8e740b939a (patch) | |
tree | f6d53202385407fb3757682b68cf4bae2ced2a4f /pod | |
parent | 37798a014a52933ebedec492be43279efd2700f8 (diff) | |
download | perl-1faa3dee5e3a2f365ca0794827258b8e740b939a.tar.gz |
Add warning about calling sv_setsv on temp SVs
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perlguts.pod | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 5e8f077f29..07509bcc04 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -2008,6 +2008,9 @@ Note that C<sv_setref_pv> copies the pointer while this copies the string. =item sv_setsv Copies the contents of the source SV C<ssv> into the destination SV C<dsv>. +(B<NOTE:> If C<ssv> has the C<SVs_TEMP> bit set, C<sv_setsv> may simply steal +the string from C<ssv> and give it to C<dsv>, leaving C<ssv> empty. +Caveat caller.) void sv_setsv _((SV* dsv, SV* ssv)); |