This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document sprintf %#x behaviour for zero value
authorIlya Zakharevich <ilya@math.ohio-state.edu>
Mon, 13 Oct 1997 23:46:31 +0000 (11:46 +1200)
committerTim Bunce <Tim.Bunce@ig.co.uk>
Fri, 3 Apr 1998 12:00:00 +0000 (00:00 +1200)
In article <v03110702b0860785aad3@[194.51.248.90]>,
Dominic Dunlop  <domo@slipper.ip.lu> wrote:
> --- perl5.004_04/pod/perlfunc.pod.orig  Tue Oct 14 12:46:31 1997
> +++ perl5.004_04/pod/perlfunc.pod       Wed Nov  5 12:35:32 1997
> @@ -3222,7 +3222,7 @@
>     +       prefix positive number with a plus sign
>     -       left-justify within the field
>     0       use zeros, not spaces, to right-justify
> -   #       prefix octal with "0", hex with "0x"
> +   #       prefix non-zero octal with "0", hex with "0x"
>     number  minimum field width
>     .number "precision": digits after decimal point for floating-point,
>             max length for string, minimum length for integer

I still have problems parsing this.  Why not

p5p-msgid: 1997Nov5.185959.2539604@cor.newman

pod/perlfunc.pod

index 474ecd6..0470c6d 100644 (file)
@@ -3255,7 +3255,7 @@ and the conversion letter:
    +       prefix positive number with a plus sign
    -       left-justify within the field
    0       use zeros, not spaces, to right-justify
-   #       prefix octal with "0", hex with "0x"
+   #       prefix non-zero octal with "0", non-zero hex with "0x"
    number  minimum field width
    .number "precision": digits after decimal point for floating-point,
            max length for string, minimum length for integer