[Rt-devel] Possible RT testing bug

Todd Chapman todd at chaka.net
Wed Mar 9 17:05:08 EST 2005


On Wed, Mar 09, 2005 at 05:14:53PM -0500, Vivek Khera wrote:
> 
> On Mar 9, 2005, at 4:29 PM, Todd Chapman wrote:
> 
> >RT::Ticket::Create returns an array, so when evaluated in
> >a scalar context it is always true. Correct?
> >
> 
> in a scalar context an array evaluates to the number of elements in it, 
> so it is not always "true".
> 
> Vivek Khera, Ph.D.
> +1-301-869-4449 x806
> 

But since that method always returns 3 elements it will always
be true in this case.



More information about the Rt-devel mailing list