summaryrefslogtreecommitdiff
path: root/pod/perl5133delta.pod
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avar@cpan.org>2010-07-19 14:23:42 +0000
committerDavid Golden <dagolden@cpan.org>2010-07-19 08:27:46 -0700
commit2b32d74cef00e0bba7871a1c7dc3f66b07049e2c (patch)
tree043836a9be14b1f3c27037bd149748773487e963 /pod/perl5133delta.pod
parent15d6324c2f3654e2d5818d7d451b90a689d37353 (diff)
downloadperl-2b32d74cef00e0bba7871a1c7dc3f66b07049e2c.tar.gz
perl5133delta: Expand on "Uppercase X/B allowed.."
Mention that C<eval sprintf "%#X", 0x10> now works, and that upper case hex/binary literals are supported in C and friends.
Diffstat (limited to 'pod/perl5133delta.pod')
-rw-r--r--pod/perl5133delta.pod10
1 files changed, 8 insertions, 2 deletions
diff --git a/pod/perl5133delta.pod b/pod/perl5133delta.pod
index 2f571c69b5..58ff417344 100644
--- a/pod/perl5133delta.pod
+++ b/pod/perl5133delta.pod
@@ -51,8 +51,14 @@ See L<charnames> for details on all these changes.
=head2 Uppercase X/B allowed in hexadecimal/binary literals
-Literals may now use either C<0X...> or C<0B...> in addition to C<0x...>
-and C<0b...> prefixes. (RT#76296) (a674e8d)
+Literals may now use either upper case C<0X...> or C<0B...> prefixes,
+in addition to the already supported C<0x...> and C<0b...>
+syntax. (RT#76296) (a674e8d)
+
+C, Ruby, Python and PHP already supported this syntax, and it makes
+Perl more internally consistent. A round-trip with C<eval sprintf
+"%#X", 0x10> now returns C<16> in addition to C<eval sprintf "%#x",
+0x10>, which worked before.
=head1 Incompatible Changes