--On Mittwoch, 03. September 2008 13:16 +0200 Florian Lohoff
<[EMAIL PROTECTED]> wrote:

> One day i'll beat Larry Wall for making the number of elements
> in an array be 0 if there is actually 1.

>From "Programming Perl", 3rd edition, chapter 2.8.2:
"This will return the subscript of the last element of the array, or
one less than the length, since there is (ordinarily) a 0th element."

To get the length, you have to force the array into a scalar context. I
know, it's stupid.

Andreas.

_______________________________________________
Tilesathome mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/tilesathome

Reply via email to