> # I define
> my @dice =
> (
> # typepips on first die pips on second die tally
> ('normal',(1, 2, 3, 4, 5, 6), (1, 2, 3, 4, 5, 6), 0 xx 14),
> ('Sicherman', (1, 3, 4, 5, 6, 8), (1, 2, 2, 3, 3, 4), 0 xx 14)
> );
> # and later do
> @dice[1;3;2]++;
> # and get
> # Cann
Hi Mark,
Try this:
my @dice =
(
# typepips on first die pips on second die tally
('normal',(1, 2, 3, 4, 5, 6), (1, 2, 3, 4, 5, 6), (0 xx 14).Array),
('Sicherman', (1, 3, 4, 5, 6, 8), (1, 2, 2, 3, 3, 4), (0 xx 14).Array)
);
The problem in your code is that 0 xx 14 is a
# I define
my @dice =
(
# typepips on first die pips on second die tally
('normal',(1, 2, 3, 4, 5, 6), (1, 2, 3, 4, 5, 6), 0 xx 14),
('Sicherman', (1, 3, 4, 5, 6, 8), (1, 2, 2, 3, 3, 4), 0 xx 14)
);
# and later do
@dice[1;3;2]++;
# and get
# Cannot resolve caller post