Skip to content

Commit b39e463

Browse files
committed
perlnumber: Leading 0 in string doesn't imply octal
Fixes #18583
1 parent 9ecd438 commit b39e463

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pod/perlnumber.pod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ perlnumber - semantics of numbers and numeric operations in Perl
1111
$n = 12.34e-56; # exponential notation
1212
$n = "-12.34e56"; # number specified as a string
1313
$n = "1234"; # number specified as a string
14+
$n = "01234"; # Same as "1234"; a leading 0 in a string
15+
# does not indicate that it is octal
1416

1517
=head1 DESCRIPTION
1618

0 commit comments

Comments
 (0)