From 08adda39d8bfe1d943b259c68ce020629bed3c0f Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sun, 4 May 2025 06:12:12 -0600 Subject: [PATCH] perlnumber: Leading 0 in string doesn't imply octal Fixes #18583 --- pod/perlnumber.pod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pod/perlnumber.pod b/pod/perlnumber.pod index 45eacdc7f15c..805dd4d42b44 100644 --- a/pod/perlnumber.pod +++ b/pod/perlnumber.pod @@ -11,6 +11,8 @@ perlnumber - semantics of numbers and numeric operations in Perl $n = 12.34e-56; # exponential notation $n = "-12.34e56"; # number specified as a string $n = "1234"; # number specified as a string + $n = "01234"; # Same as "1234"; a leading 0 in a string + # does not indicate that it is octal =head1 DESCRIPTION