Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: float: Perl is replacing dot with comma (automagic locale?)

by muba (Priest)
on May 15, 2014 at 15:14 UTC ( #1086161=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!perl
    use strict;
    ...
    sub printer {
            print "This is ". $My::Test::VERSION ."\n";
    }
    
  2. or download this
    test: 1.23
    Use of uninitialized value $My::Test::VERSION in concatenation (.) or 
    +string at
    x.pl line 17.
    This is
    1
    
  3. or download this
    my $test = 1.23;
    
  4. or download this
    SYMBOL TABLE:
    $test = 1.23
    
  5. or download this
    print "test: $test \n";
    
  6. or download this
    print My::Test::Print::printer() ."\n";
    
  7. or download this
            print "This is ". $My::Test::VERSION ."\n";
    
  8. or download this
    # mytest.pl:
    
    ...
    sub printer {
            print "This is ". $MyTest::VERSION ."\n";
    }
    
  9. or download this
    # MyTest.pm:
    package MyTest;
    our $VERSION = 1.11;
    
  10. or download this
    $ perl mytest.pl
    This is 1.11
    
  11. or download this
    #!perl
    use strict;
    ...
    sub printer {
            print "This is ". $My::Test::VERSION ."\n";
    }
    
  12. or download this
    $ perl mytest.pl
    This is 1.11
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2019-05-21 17:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (136 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!