summaryrefslogtreecommitdiff
path: root/pod/perlhack.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-06-18 13:11:49 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-06-18 13:11:49 +0000
commita6ec74c1448e028e8d796742c81e78fb067bf603 (patch)
tree316c1c9c0b1582643884c4cb62fa28d578b88412 /pod/perlhack.pod
parent72802890534be7b33c8ac870fc565ebbe0a9f388 (diff)
downloadperl-a6ec74c1448e028e8d796742c81e78fb067bf603.tar.gz
Split off the pack/unpack code, from Nicholas Clark.
p4raw-id: //depot/perl@10685
Diffstat (limited to 'pod/perlhack.pod')
-rw-r--r--pod/perlhack.pod3
1 files changed, 3 insertions, 0 deletions
diff --git a/pod/perlhack.pod b/pod/perlhack.pod
index 6b67e5706b..64c69ad96e 100644
--- a/pod/perlhack.pod
+++ b/pod/perlhack.pod
@@ -1387,6 +1387,9 @@ the C<pack> happens at runtime, so it's going to be in one of the F<pp>
files. Sure enough, C<pp_pack> is in F<pp.c>. Since we're going to be
altering this file, let's copy it to F<pp.c~>.
+[Well, it was in F<pp.c> when this tutorial was written. It has now been
+split off with C<pp_unpack> to its own file, F<pp_pack.c>]
+
Now let's look over C<pp_pack>: we take a pattern into C<pat>, and then
loop over the pattern, taking each format character in turn into
C<datum_type>. Then for each possible format character, we swallow up