Home : Products : Gossamer Links : Development, Plugins and Globals :

Products: Gossamer Links: Development, Plugins and Globals: Re: [Ian] Number of Children: Edit Log

Here is the list of edits for this post
Re: [Ian] Number of Children
I forgot to explain why...oops...

In the first example, $number_of_childen is taken in scalar context and that is why you end up with the number of elements as the value. By adding the ( ) around the variable name it changes to list context which is why you end up with the first array element (an array is a list of values).

Last edited by:

Paul: Jun 14, 2002, 8:59 AM

Edit Log: