2 ms·
@ → A → array $ → S → scalar That's how I learned and remember them. What makes that less obvious is when you work with references to arrays; the reference i
by yellowapple 7y ago
@ → A → array
$ → S → scalar
That's how I learned and remember them.
What makes that less obvious is when you work with references to arrays; the reference itself is a scalar, so it gets the scalar sigil. You can dereference it, though, by sticking an array sigil in front of it, thus telling the interpreter "hey, this is a scalar reference to an array".