The structure goes: (condition) ? (ifTrue) : (ifFalse);
So that code will set count to $row[0] if $row[0] is true, and if not, set it to 0.
In reply to Re: Help understanding a single line of perl: my $count = $row[0] ? $row[0] : 0;
by SuicideJunkie
in thread Help understanding a single line of perl: my $count = $row[0] ? $row[0] : 0;
by kdmurphy001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |