summaryrefslogtreecommitdiff
path: root/pod/perlfunc.pod
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2006-10-23 19:19:51 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-10-25 10:59:55 +0000
commit7ff06cc7c932ea693a5ea6b94f95570a9d4548b5 (patch)
treea8a629f166cc106347aa8458b66ed601066c0eb6 /pod/perlfunc.pod
parentaf08d52dcc0fecaf93b69b919878fb338f1cd6de (diff)
downloadperl-7ff06cc7c932ea693a5ea6b94f95570a9d4548b5.tar.gz
Add a %B sprintf format
Subject: Re: [perl #40583] sprintf "%#04X" also uppercases the 0x-prefix Message-ID: <20061023171951.GA3262@plum.flirble.org> (plus docs) p4raw-id: //depot/perl@29104
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r--pod/perlfunc.pod3
1 files changed, 2 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 39201531f6..ab3b0e17d5 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -5516,6 +5516,7 @@ In addition, Perl permits the following widely-supported conversions:
%E like %e, but using an upper-case "E"
%G like %g, but with an upper-case "E" (if applicable)
%b an unsigned integer, in binary
+ %B like %x, but using an upper-case "B" with the # flag
%p a pointer (outputs the Perl value's address in hexadecimal)
%n special: *stores* the number of characters output so far
into the next variable in the parameter list
@@ -5558,7 +5559,7 @@ one or more of:
- left-justify within the field
0 use zeros, not spaces, to right-justify
# prefix non-zero octal with "0", non-zero hex with "0x"
- or "0X", non-zero binary with "0b"
+ or "0X", non-zero binary with "0b" or "OB"
For example: