Your message dated Sun, 31 May 2020 12:32:05 +0300
with message-id <[email protected]>
and subject line Re: Bug#427521: perlfaq4.1.gz: mention commas separating 1000's
has caused the Debian Bug report #427521,
regarding perlfaq4.1.gz: mention commas separating 1000's
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
427521: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=427521
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: perl-doc
Version: 5.8.8-7
Severity: wishlist
File: /usr/share/man/man1/perlfaq4.1.gz

Why not say, just before
       How can I output Roman numerals?
Add a
       How can I output thousands separated by e.g., commas?
With answer
       $_=26**7; $_=reverse; s/.../$&,/g; $_=reverse; print;
       8,031,810,176
Or a better answer, if any.

(I notice
$ man 3 printf
   has a "'": For decimal conversion (i, d, u, f, F, g, G) the output is
   to be grouped with thousands' grouping...

but not perl.)


--- End Message ---
--- Begin Message ---
On Tue, Jun 05, 2007 at 01:20:10AM +0800, Dan Jacobson wrote:
> Package: perl-doc
> Version: 5.8.8-7
> Severity: wishlist
> File: /usr/share/man/man1/perlfaq4.1.gz
> 
> Why not say, just before
>        How can I output Roman numerals?
> Add a
>        How can I output thousands separated by e.g., commas?

As Brendan noted, this is already in perlfaq5 (see 'perldoc -q commas'

> (I notice
> $ man 3 printf
>    has a "'": For decimal conversion (i, d, u, f, F, g, G) the output is
>    to be grouped with thousands' grouping...
> 
> but not perl.)

Quoting 'perldoc -f sprintf':

    Perl does its own "sprintf" formatting: it emulates the C function
    sprintf(3), but doesn't use it except for floating-point numbers, and
    even then only standard modifiers are allowed. Non-standard extensions
    in your local sprintf(3) are therefore unavailable from Perl.

The "'" modifier is such a non-standard extension, coming from SUS not C99
(as stated by sprintf(3)).

I'm closing this.
-- 
Niko Tyni   [email protected]

--- End Message ---

Reply via email to