your code example is correct. ?: is called the ternary operator. you can read about it in perlop
~Particle *accelerates*
In reply to Re^3: Filling In "The Gaps" in an Array
by particle
in thread Filling In "The Gaps" in an Array
by bivouac
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |