> An interpolated array: > > / @cmds / > > is matched as if it were an alternation of its elements: > > / [ @cmds[0] | @cmds[1] | @cmds[2] | ... ] / > > As with a scalar variable, each one is matched as a literal.
Like this? (Assuming single quotes don't interpolate @foo[...]) @a = ('a', 'b', 'c'); '@a[0]' ~~ m:/ @a /; # true '@a[2]' ~~ m:/ @a /; # true '@a[9]' ~~ m:/ @a /; # false If so, that seems pretty wacky... -John