zlacker

[parent] [thread] 2 comments
1. kwoff+(OP)[view] [source] 2025-11-20 02:57:21

  - weird sigil rules where the 0 element of @x is $x[0] not @x[0]
'@' and '%' indicate containers, while '$' is a scalar (which containers can contain). So '$x[0]' is referring to a scalar within the '@x' container. If you operate on a container, like 'push @x, 2', it uses the container sigil.

I guess "weird" triggered me a bit, heh. I know it's subjective.

replies(1): >>cowboy+Q41
2. cowboy+Q41[view] [source] 2025-11-20 13:48:19
>>kwoff+(OP)
haha even your explanation looks 'write only'
replies(1): >>lupire+Sx1
◧◩
3. lupire+Sx1[view] [source] [discussion] 2025-11-20 16:19:12
>>cowboy+Q41
Sigils are essentially type tags. That's it.

Array x === @x

Int x[0] === $x[0]

[go to top]