in reply to decimal placement

In addition to s/printf, you might also want to check out Number::Format, which deals with localization issues as well as other formats like bytes/kilobytes/megabytes, money, etc.

Chris
M-x auto-bs-mode

Replies are listed 'Best First'.
Re (tilly) 2: decimal placement
by tilly (Archbishop) on Mar 26, 2001 at 04:54 UTC
    This may be seriously unfair, but the two aspects of Perl's behaviour (to my eyes bugs) that I dislike most I learned tracking down bugs in Number::Format.

    The first was the infamous "my $foo if 0;", the other is the fact that $_ is the same in all namespaces, so call a function in a map and it can wipe out your input array - even if the module is in another namespace.

    Not bad for a module that I don't even use! (Co-workers discovered it and used it. Personally I would have been perfectly happy with what sprintf offers...)