Instead of the ternary operator, might I recommend the "defined-or" test instead. It's more succinct and it doesn't fail on a value of '0'.
print $array1[$index] // ' ';
In reply to Re^3: printing unequal sized lists side by side
by wind
in thread printing unequal sized lists side by side
by nad04299
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |