From: Gurusamy Sarathy Date: Sat, 8 May 1999 16:56:02 +0000 (+0000) Subject: mention unpack('pP',...) footshot (from Albert Dvornik ) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3160c39162b19f4390e9806b11fb472bc602a6bd;p=p5sagit%2Fp5-mst-13.2.git mention unpack('pP',...) footshot (from Albert Dvornik ) p4raw-id: //depot/perl@3333 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index b2231a3..a65e3e3 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -4613,6 +4613,11 @@ The following efficiently counts the number of set bits in a bit vector: $setbits = unpack("%32b*", $selectmask); +The C<"p"> and C<"P"> formats should be used with care. Since Perl +has no way of checking whether the value passed to C +corresponds to a valid memory location, passing a pointer value that's +not known to be valid is likely to have disastrous consequences. + See L for more examples. =item untie VARIABLE