6 ms·
... since you're only returning one element in that array, this should probably be "${$ref}[0]" which returns a scalar only. It's perfectly fine to use the arr
by chromatic 15y ago
... since you're only returning one element in that array, this should probably be "${$ref}[0]" which returns a scalar only.
It's perfectly fine to use the array sigil, in which case it's a one-element list instead of a scalar. That's useful sometimes.