X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlguts.pod;h=8c440c89d3be3ee6a22b20b804b84e6f1982ddfc;hb=ef7adf26b48d8441a94b9133216b2ca93f1f3137;hp=5255519a8851790ecc5695fea5a782450ea3d3dd;hpb=a422fd2daf7c8932b983f20168fdc22a95c19633;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlguts.pod b/pod/perlguts.pod index 5255519..8c440c8 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -34,8 +34,8 @@ as well.) =head2 Working with SVs An SV can be created and loaded with one command. There are four types of -values that can be loaded: an integer value (IV), a double (NV), a string, -(PV), and another scalar (SV). +values that can be loaded: an integer value (IV), a double (NV), +a string (PV), and another scalar (SV). The six routines are: @@ -1317,6 +1317,21 @@ destination starting points. Perl will move, copy, or zero out C instances of the size of the C data structure (using the C function). +Here is a handy table of equivalents between ordinary C and Perl's +memory abstraction layer: + + Instead Of: Use: + + malloc New + calloc Newz + realloc Renew + memcopy Copy + memmove Move + free Safefree + strdup savepv + strndup savepvn (Hey, strndup doesn't exist!) + memcpy/*(struct foo *) StructCopy + =head2 PerlIO The most recent development releases of Perl has been experimenting with