diff options
author | Piotr Klaban <makler@oryl.man.torun.pl> | 1999-10-01 12:23:49 +0200 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-01 10:26:19 +0000 |
commit | b2f5ed49123019744d7a7be15208a7e98e095dd0 (patch) | |
tree | 76a9aef2ab2f71e0488c9ad974ae623caa40db30 /pod/perlguts.pod | |
parent | b3656ec34f74d879ca158a5689e6d4537869c415 (diff) | |
download | perl-b2f5ed49123019744d7a7be15208a7e98e095dd0.tar.gz |
[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
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r-- | pod/perlguts.pod | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod index a5350486ce..d0f916786c 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<foo(SvPV(s, len), len);>. 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: |