Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: 0.123, float or integer

by guha (Priest)
on Feb 06, 2002 at 21:42 UTC ( [id://143710]=note: print w/replies, xml ) Need Help??


in reply to 0.123, float or integer

Solution:

As indicated previously in this thread the culprit was DBI.
After the DBI->connect statement the decimalpoint was changed to decimalcomma, though that's not entirely true as decimal comma was not allowed in the perlcode.

I have solved this by resetting the LC_NUMERIC parameter directly after the connect command

use POSIX qw(locale_h); . . my $dbh = DBI->connect("DBI:ODBC:$dsn") or die "Could not connect to $ +dsn\n"; setlocale(LC_NUMERIC, "C"); . .
Just hoping that I won't be bitten in the back by some other aspect of locales ;-/
Anyway thanks all for your support and Hey I got to know Devel::Peek and locales along the journey!
---
I would like to change the world but God won't let me have the source code.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://143710]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-18 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found