w.k
w.k

Reputation: 8386

How to format numbers with locale based decimal separator in Perl?

I seek for way to use locale-based decimal separator in my perl-scripts. For now i don't see better solution than just s/\./,/ in specific places, but it is ugly and i'd like to have more clean solution.

Upvotes: 4

Views: 3607

Answers (1)

Nemo
Nemo

Reputation: 71555

The perllocale manpage might be useful. It also has examples.

Upvotes: 5

Related Questions