in reply to Re: Print a number with grouping in a European style
in thread Print a number with grouping in a European style

I could have, but at the time I didn't actually think to look up the perl faq. But now I have, I notice that my algorithm is basically the same as the routine from Andrew Johnson, just with modifications to use map instead of a s///, to convert the radix point to a comma. Plus this has been turned into a one-liner (with only one statement), which while the examples in perlfaq could easily be turned into one-liners, they all require temporary variables, which I like to avoid (for no good reason).

--
integral, resident of freenode's #perl
  • Comment on Re: Re: Print a number with grouping in a European style