@mhd @drmorr If you want or need to be verbose, you can say the following in #Perl to get the number of elements in an array:
```
scalar @array
```
What that does is force an expression into a scalar context.
But a lot of the time you *don’t* need to do that. For instance, this will do the right thing:
```
$length = @array;
```
As well as this:
```
say 'There are four lights' if @lights == 4;
```
More on context here: https://perldoc.perl.org/perldata#Context