in reply to Perl, Gtk2 and locale — a bit of a mess
Does that work for you?#!/usr/bin/perl -l use strict; use warnings; my $num = 123.456; str($num); sub str { my ($want_num, $width) = @_; $width = '000'; $want_num =~ tr/./,/; $want_num = print "$want_num$width"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl, Gtk2 and locale — a bit of a mess
by Ralesk (Pilgrim) on Jul 12, 2013 at 09:46 UTC | |
by Ralesk (Pilgrim) on Mar 24, 2014 at 09:01 UTC |