From 5b1fede8986da7d83b67c4c43368188050e5d609 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Wed, 19 Oct 2016 10:58:30 +0200 Subject: [PATCH] pod: mention SvPVCLEAR() --- pod/perlguts.pod | 2 +- pod/perlhacktut.pod | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 576a41cd90..a6aba00cfc 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -186,7 +186,7 @@ sv_insert() or sv_insert_flags(). If you don't need the existing content of the SV, you can avoid some copying with: - sv_setpvs(sv, ""); + SvPVCLEAR(sv); s = SvGROW(sv, needlen + 1); /* something that modifies up to needlen bytes at s, but modifies newlen bytes diff --git a/pod/perlhacktut.pod b/pod/perlhacktut.pod index 4143ec3048..72919fcd4a 100644 --- a/pod/perlhacktut.pod +++ b/pod/perlhacktut.pod @@ -74,7 +74,7 @@ of C: items = SP - MARK; MARK++; - sv_setpvs(cat, ""); + SvPVCLEAR(cat); + patcopy = pat; while (pat < patend) {