Since upgrading from Ubuntu 12.04 to 14.04, Perl seems to behave differently.
I've got a script that loads a module, a module where I define the version as our $VERSION = 1.23. Now, when I call print with the $Some::Module::VERSION variable, or when I use it in a concatenation, I get a number as it would be correct for a floating point number within my locale, with a comma - I'm on a German Ubuntu here. But I'd like to have the US dot format...
To illustrate it, I've written this small test script. But: This example script does not work. It prints "1.23" (and, as bonus, tought me that there's a difference between declaring packages in one script and having them loaded as modules. printer() prints "This is .").
Anyone here who knows what's going on?#!perl my $test = 1.23; print "test: $test \n"; print My::Test::Print::printer() ."\n"; package My::Test; our $VERSION = 1.11; package My::Test::Print; sub printer { print "This is ". $My::Test::VERSION ."\n"; }
In reply to float: Perl is replacing dot with comma (automagic locale?) by isync
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |