[Tilesathome] ROMA problems with relations

Andreas Mueller mailinglists at andreas-mueller.com
Wed Sep 3 12:35:09 BST 2008



--On Mittwoch, 03. September 2008 13:16 +0200 Florian Lohoff
<flo at rfc822.org> 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.




More information about the Tilesathome mailing list