From: Piotr Klaban Date: Fri, 1 Oct 1999 10:23:49 +0000 (+0200) Subject: [ID 19991001.001] perlguts man page error X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b2f5ed49123019744d7a7be15208a7e98e095dd0;p=p5sagit%2Fp5-mst-13.2.git [ID 19991001.001] perlguts man page error To: perl5-porters@perl.org Message-Id: <199910010823.KAA05796@oryl.man.torun.pl> p4raw-id: //depot/cfgperl@4269 --- diff --git a/pod/perlguts.pod b/pod/perlguts.pod index a535048..d0f9167 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -107,9 +107,10 @@ Also remember that C doesn't allow you to safely say C. It might work with your compiler, but it won't work for everyone. Break this sort of statement up into separate assignments: + SV *s; STRLEN len; char * ptr; - ptr = SvPV(len); + ptr = SvPV(s, len); foo(ptr, len); If you want to know if the scalar value is TRUE, you can use: