> : > Perl seems to be confused making some arithmetic operations (additions).
> : > Sometimes the result of $a+=$b, when $a is 0 and $b is 2 happens to be
> : > 2.04192 or something similar.
> :
> : Fernando, I unfortunately have no idea what is causing this. Please
> : provide a short script
J.H.M.Dassen writes:
>
> #!/usr/bin/perl
>
> @array=(
> "item1 4 units",
> "item2 1.5 units",
> "item3 8 units + see item2"
> );
>
> foreach (@array) {
> if( ($item_name,$amount,$unit,$delimiter,$moreinfo)=
> /^(\w+)\s
Forwarded message:
>From [EMAIL PROTECTED] Mon Oct 23 17:47:44 1995
Date: Mon, 23 Oct 1995 12:47:22 -0400 (EDT)
From: Fernando <[EMAIL PROTECTED]>
To: "J.H.M.Dassen" <[EMAIL PROTECTED]>
Subject: Re: Bug#1732: Bad arithmetic in new perl packages
In-Reply-To: <[EMAIL PRO
: Fernando wrote to debian-bugs:
: > Pakckage: perl
: > Version: 5.001-5
: (perl5-porters, this is 5.001m without additional packages).
:
: > Notes: tried a.out only, happens also with 5.001-4, however 5.001-3 is OK
: (5.001-3 == 5.001e).
:
: > Perl seems to be confused making some arithmetic opera
On Sun, 22 Oct 1995, J.H.M.Dassen wrote:
> Fernando wrote to debian-bugs:
(problem with 5.001m, but not 5.001e)
> > Perl seems to be confused making some arithmetic operations (additions).
> > Sometimes the result of $a+=$b, when $a is 0 and $b is 2 happens to be
> > 2.04192 or something simi
Fernando wrote to debian-bugs:
> Pakckage: perl
> Version: 5.001-5
(perl5-porters, this is 5.001m without additional packages).
> Notes: tried a.out only, happens also with 5.001-4, however 5.001-3 is OK
(5.001-3 == 5.001e).
> Perl seems to be confused making some arithmetic operations (additions
Pakckage: perl
Version: 5.001-5
Notes: tried a.out only, happens also with 5.001-4, however 5.001-3 is OK
Perl seems to be confused making some arithmetic operations (additions).
Sometimes the result of $a+=$b, when $a is 0 and $b is 2 happens to be
2.04192 or something similar.
7 matches
Mail list logo