Array (@)
Ordered values.
Syntax
my @a = (...); push @a, x;
Description
@ for arrays. $a[0] is the first element, push adds elements, scalar(@a) gives the element count, sort sorts them.
Example
Loading editor…
Expected output
10 4
When to use?
Storing lists.