This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldata.pod: mention new octal integer format (0o12_345).
authorTAKAI Kousuke <62541129+t-a-k@users.noreply.github.com>
Fri, 30 Oct 2020 12:55:03 +0000 (21:55 +0900)
committerKarl Williamson <khw@cpan.org>
Tue, 8 Dec 2020 04:52:14 +0000 (21:52 -0700)
pod/perldata.pod

index dc9dc6d..7cae8b2 100644 (file)
@@ -444,6 +444,7 @@ integer formats:
  0xff                # hex
  0xdead_beef         # more hex
  0377                # octal (only numbers, begins with 0)
+ 0o12_345            # alternative octal (introduced in Perl 5.33.5)
  0b011011            # binary
  0x1.999ap-4         # hexadecimal floating point (the 'p' is required)