summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>2020-10-01 18:15:55 +0900
committerKarl Williamson <khw@cpan.org>2020-10-04 13:27:18 -0600
commit8a8981bf0ac3659aef6d286e6563950e6acf5168 (patch)
treea835b89533518cb9efd88646435d68a1a3f93d4a /pod
parentfa353c3d2833fc326233e0eb583753b4d7887a63 (diff)
downloadperl-8a8981bf0ac3659aef6d286e6563950e6acf5168.tar.gz
perlfunc.pod - describe that "x" and "b" work the same way as
"0x" and "0b" in oct()
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod4
1 files changed, 2 insertions, 2 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 5bffea73bb..2026c76001 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -4433,8 +4433,8 @@ X<oct> X<octal> X<hex> X<hexadecimal> X<binary> X<bin>
=for Pod::Functions convert a string to an octal number
Interprets EXPR as an octal string and returns the corresponding
-value. (If EXPR happens to start off with C<0x>, interprets it as a
-hex string. If EXPR starts off with C<0b>, it is interpreted as a
+value. (If EXPR happens to start off with C<0x> or C<x>, interprets it as a
+hex string. If EXPR starts off with C<0b> or C<b>, it is interpreted as a
binary string. Leading whitespace is ignored in all three cases.)
The following will handle decimal, binary, octal, and hex in standard
Perl notation: