The 'D' means that the values are doubles instead of floats (in FORTRAN).
Updates:
This sounds like a bug that should be reported to p5p. This is such an old and standard notation that it will probably be common for C's strtod() to support it so Perl should be made aware of it in order to avoid the misleading warning.
split didn't used to support -1 as the third argument so old code had to make up some "arbitrarilly large number" to get such functionality. In this case, I would think just dropping the third argument makes the most sense (since trailing spaces should probably not create a final, empty "number" to be processed). But in other cases you should change the "9999" to "-1" so that your code won't break when you actually get 10000 items. I complained about this in Perl 4 and suggested the current behavior but Larry didn't seem impressed so I was glad when this feature showed up. (:
- tyeIn reply to Re^2: Weird number formatting (FORTRAN double)
by tye
in thread Weird number formatting
by licking9Volts
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |