Most of it is straight forward but the ? $row[0] : 0; throws me off. I don't know what the "?" and ":" are doing. $row[0] refer to a database pull and will be a value no smaller then 1 (1 to something large). Thank you so much! Going through someone elses scripts can be a bit daunting at times.my $count = $row[0] ? $row[0] : 0;
In reply to Help understanding a single line of perl: my $count = $row[0] ? $row[0] : 0; by kdmurphy001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |