in reply to Re: Check for next array element.
in thread Check for next array element.

Thanks, that's what i was looking for.

I know this was easy, but I'm not familiar with the

$data->{IS_LAST} = $count == $size ? 1 : 0;
syntax.

Replies are listed 'Best First'.
Re^3: Check for next array element.
by friedo (Prior) on Nov 18, 2005 at 16:26 UTC
    That is the ternary conditional operator, which is short for if/then/else. I like to use it for assigning a conditional value. If the condition $count == $size is true, then 1 is returned, otherwise 0.