in reply to Komodo 4.0 Bug ? Unlikely but....

The bug is in the code, not the tool :)

$pi = 3,141592654;

I think you mean:

$pi = 3.141592654;

You make the same error on the next line when you use 12,5 instead of 12.5.

Perl (like all other programming languages that I've used) uses a decimal point to denote the start of the fractional portion of a number. This sometimes confuses programmers who come from cultures that use a comma for the same thing.

If you get an error message from Perl that you don't understand, then you can add use diagnostics to your program and Perl will give you a longer explanation of the error.

--
<http://dave.org.uk>

"The first rule of Perl club is you do not talk about Perl club."
-- Chip Salzenberg

Replies are listed 'Best First'.
Re^2: Komodo 4.0 Bug ? Unlikely but....
by Htorne (Initiate) on Jan 23, 2007 at 11:10 UTC
    Oh my God, thanks - guess this is only something that I do once. :) but yep, im from denmark where we use ., differently :) thanks
      ;-)

      For more accurate values of PI see Golf -- compute PI :-D

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      I want to give some additional information if you want to round off your result you can use
      use Math::Round; $data=nearest (.1,$data)
      With use of this class and this function you can round off upto desired decimal number,where $data is some number we are getting to which we want to round off and Your problem is solved i think so ,it is because you are using "," instead of "."
      I think it will help you in future.