From: Jason Stacy on
Given a decimal value (e.g. 1234567890) I want to print this number with
grouping delimiters (european style with dots: 1.234.567.890,00
and not US style 1,234,567,890.00)

How can I do this in perl?

Jason

From: sheinrich on
On May 5, 8:33 am, jjst...(a)yahoo.net (Jason Stacy) wrote:
> Given a decimal value (e.g. 1234567890) I want to print this number with
> grouping delimiters (european style with dots: 1.234.567.890,00
> and not US style 1,234,567,890.00)
>
> How can I do this in perl?
>
> Jason

Adapt any of the methods given at
http://faq.perl.org/perlfaq5.html#How_can_I_output_my_

BTW: the comma as a decimal separator is country _and_ language
specific, and is not common across europe.

From: J�rgen Exner on
jjstacy(a)yahoo.net (Jason Stacy) wrote:
>Given a decimal value (e.g. 1234567890) I want to print this number with
>grouping delimiters (european style with dots: 1.234.567.890,00
>and not US style 1,234,567,890.00)
>
>How can I do this in perl?

See perldoc -q added

Replacing the comma with a dot in the sub commify() is left as an
excercise to the reader.

jue
 | 
Pages: 1
Prev: Perl 6
Next: retrieve info from searching site