The equivalent without autovivification of the snippet using autovivification is
( ( $sheets[$sheet] //= [] )->[$row] //= [] )->[$col] = 0;
Your choice.
In reply to Re^3: Creating and Accessing 3-D array
by ikegami
in thread Creating and Accessing 3-D array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |