[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1915: Perl doesn't like the number 0



Package: perl
Version: 5.002-1 (a.out)

The following program prints "0.e-1" instead of "0".

for ($j = 0; $j <= 7; $j++) {
      print "$j\n";
}

Output:
0.e-1
1
2
3
4
5
6
7


Peter

--
 Peter Tobias                                EMail:
 Fachhochschule Ostfriesland                 tobias@et-inf.fho-emden.de
 Fachbereich Elektrotechnik und Informatik   tobias@perseus.fho-emden.de
 Constantiaplatz 4, 26723 Emden, Germany


Reply to: