tphyahoo has asked for the wisdom of the Perl Monks concerning the following question:
I tracked down perl currency formatting which seems to be sort of relevant but... ach, it all sounds so complicated. Isn't there some way to do this in a nice polite line of code?
As currently written, the following code is a "not numeric in multiplication" error. Cleanest fix?
use strict; use warnings; while (<DATA>) { print $_ * 2; } __DATA__ 1,1 2,2 3,3
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: locale savvy comma as decimal operator
by japhy (Canon) on May 25, 2005 at 19:50 UTC | |
by diotalevi (Canon) on May 25, 2005 at 22:06 UTC | |
by japhy (Canon) on May 25, 2005 at 23:57 UTC | |
by diotalevi (Canon) on May 26, 2005 at 00:07 UTC | |
by tphyahoo (Vicar) on May 26, 2005 at 08:14 UTC | |
| |
|
Re: locale savvy comma as decimal operator
by holli (Abbot) on May 25, 2005 at 19:38 UTC | |
by tphyahoo (Vicar) on May 26, 2005 at 08:24 UTC | |
|
Re: locale savvy comma as decimal operator
by sh1tn (Priest) on May 25, 2005 at 22:08 UTC | |
|
Re: locale savvy comma as decimal operator
by TedPride (Priest) on May 25, 2005 at 21:43 UTC |