summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>2010-12-17 10:55:20 -0800
committerChip Salzenberg <chip@pobox.com>2010-12-17 10:55:20 -0800
commitf6166f76b7f5b59becd71ea9d8f959a789ee70f8 (patch)
treeedcb7ee1b56caa05a602394c8e75d30f415ef454 /pod
parent673c2ba8988082a3225a61fc6a54304514e378e7 (diff)
downloadperl-f6166f76b7f5b59becd71ea9d8f959a789ee70f8.tar.gz
document new printf size modifiers
Diffstat (limited to 'pod')
-rw-r--r--pod/perldelta.pod9
1 files changed, 9 insertions, 0 deletions
diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 835d70608a..630ccc0e12 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -109,6 +109,15 @@ This double setting arrangement is a stopgap until the reason for unwinding can
be made properly introspectable. C<$@> has never been a reliable indicator of
this.
+=head2 printf-like functions understand size modifiers "hh", "z", "t", and sometimes "j"
+
+Perl's printf and sprintf operators, and Perl's internal printf replacement
+function, now understand the C90 size modifiers "hh" (C<char>), "z"
+(C<size_t>), and "t" (C<ptrdiff_t>). Also, when compiled with a C99
+compiler, Perl now understands the size modifier "j" (C<intmax_t>).
+
+So, for example, on any modern machine, C<sprintf('%hhd', 257)> returns '1'.
+
=head2 DTrace probes now include package name
The DTrace probes now include an additional argument (C<arg3>) which contains