Message-ID: <Pine.LNX.3.93.
990123212857.446B-100000@kjahds.kjahds.com>
p4raw-id: //depot/perl@2913
that Perl allows arbitrary strings of data that may both contain NULs and
might not be terminated by a NUL.
+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:
+
+ STRLEN len;
+ char * ptr;
+ ptr = SvPV(len);
+ foo(ptr, len);
+
If you want to know if the scalar value is TRUE, you can use:
SvTRUE(SV*)